Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ORDER table
Message
From
15/07/2003 08:50:18
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00810084
Message ID:
00810158
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
>> How can I use ORDER BY clause for ORDER table?

Since ORDER is listed as a reserve word, your safest approach will be to delimit the work with square brackets.


>> Also what is better

IMO, always be explicit.

-Mike

>Hi everyone,
>
>Sorry for such novice question, but it got me stumped for a moment. How can I use ORDER BY clause for ORDER table? Also what is better: name every field like select company, OrderNumber from [ORDER] order by company, OrderNumber or select company, OrderNumber from [ORDER] order by 1,2 ?
>
>Thanks in advance.
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform