Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sometimes SQL Select not being Optimised
Message
De
20/07/2001 03:07:22
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00532955
Message ID:
00533009
Vues:
14
Hi Nadya,

I always alias no matter how many tables are part of the SQL. I do this for a couple of reasons.

1. The code is easier to read ( IMO ).
2. Maybe one day you'll need to modify the SQL to cater for extra tables.

Regards,
Gavin...

>>It's bad SQL to get rid of aliases. It takes up no overhead and is esier to read.
>>
>
>Well, I guess it's just a personal preference. I don't use aliases, if field names are unique or I use one table. One additional reason for this, that we use special application for Query, so the less characters we put in the field (which would be then evaluated), the better.
>
>Anyway, disregard this part of advice, then.
>
>>>It's obviously better to prepare all constants before SQL than caluclating them in SQL for each record. So, the third example is the best here. Also I would get rid of aliases, since you're using only one table in your SQL.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform