Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread SQL - Use a label only?
Wed, Mar 5 2008 11:23 PMPermanent Link

Dave
Say I have an SQL like

SELECT Field1, Field2, Field3 FROM MyTable

Now I want to put the word January as the first column.
Note January is not a field name

In other DB Engines I have done

SELECT 'January', Field1, Field2, Field3 FROM MyTable

This works ok with other DB Engines but not with DBISAM
I am assuming it can be done but the syntax is wrong?

Any help would be great. Thanks
Wed, Mar 5 2008 11:45 PMPermanent Link

Dave
Dont worry it does work exactly the same.
Wed, Mar 5 2008 11:53 PMPermanent Link

Dave
Tell a lie. That only completes the Column Label.
How can I make all this columns values 'January' ?
Thu, Mar 6 2008 4:12 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Dave


I just tried it here and it works fine.

Roy Lambert
Fri, Mar 14 2008 10:07 PMPermanent Link

"Julio S."
Hi,

You could try

SELECT CAST('January' AS VARCHAR(10)), Field1, Field2, Field3 FROM MyTable

Regards.

Julio.


> Tell a lie. That only completes the Column Label.
> How can I make all this columns values 'January' ?
>
Image