Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ORDER table
Message
From
18/08/2003 07:10:48
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00810084
Message ID:
00820971
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
Hi!

Unfortunately, NO. Different databases use different rules for ORDER BY and tables naming. For example, some backends allow only double quotes around names that match keywords or are not standard. Some backends do not allow use of numbers in ORDER BY.


>Thanks, Sergey, Mike and Cindy. That's actually a question in the test. It doesn't specify a back-end. Would the same SQL be other databases (Access, VFP - obviously, it would, Oracle, etc.) complaint?
>
>Also sorry for unrelated question, but could you please give me a good link for UML (introduction)?
>
>>Hi Nadya,
>>
>>If table/filed name doesn't follow requiremebnts for MS SQL indetifiers, you can enclose them into square brackets. If you want to be the SQL-92 compliant, you can use double quotes but it requires SET QUOTED_IDENTIFIER to be set to ON at parse time.
>>Using column names or column #'s, is a matter of personal preference. I usually use column names so I can freely rearange columns in the list if I have to.
>>
>>>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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform