Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random quote for the day..
Message
 
 
To
12/04/2009 16:14:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01394387
Message ID:
01394437
Views:
44
>In SQL server however all of these are valid:
>
>
select firstName+lastName as fullName,firstName,lastName from myTable order by fullName
>
select firstName+lastName as fullName,firstName,lastName from myTable order by 1
I'm not sure these two work in SQL Server. I don't have SQL Server installed right now to verify this.


>
select firstName,lastName from myTable order by firstName+lastName
>
>In the same manner you could do:
>
>
select newId(),* from mytable order by 1
>
>or:
>
>
select * from mytable order by newID()
>
>Cetin
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform