Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with the second DB
Message
 
 
To
31/01/2022 00:37:04
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01683370
Message ID:
01683459
Views:
53
>>But again...I *really* encourage you to use some type of proper alias. In all candor, it royally pisses me off when people don't do it.
>
>Now that you mention it, what is the reason why an Alias should be used? For me this seems counter productive, unless you have a self join, but I see many people doing it. It was my impression to give a short name when the table names would be too long, but it does not necessarily make the select more readable.

In my opinion, aliases make selects much more readable. Also, I have a rule to only use full name in the from clause and use aliases in all other places or the selects (and other DML statements). I do sometimes see code where the full name getting repeated in other places such as column list or where clause and to me it's just unnecessary clutter that makes select much harder to read. I usually try to correct such code when I see it.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform