Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why did they do this
Message
From
26/03/2005 22:08:51
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00999274
Message ID:
00999317
Views:
19
Write down on a pcs of paper

A -> table1
B -> table2
C -> table3
D -> table4
AB -> table1+table2


>>Nothing to do with requirements for Oracle. It was my boss' requirement to make my sql statement shorter<g>. I think their because with large systems, it's easy to get knarly sql statements, they've developed a standard of apprevating where they can.
>>
>
>Hi Perry,
>
>I also use short aliases (2-3 letters in most cases) all the time because it makes complex queries more readable. My objection is to use of one letter alliaces a,b,c,d which have nothing to do with table names. If you see somewhere in the query 'b.somefield' you cannot tell what table it's referencing w/o going back to FROM or JOIN clause. On other hand if you see 'ord.somefield' it easier to remember that it's referencing Order table.
Previous
Reply
Map
View

Click here to load this message in the networking platform