Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNION SELECT... please correct me
Message
De
28/10/1998 08:42:02
 
 
À
27/10/1998 18:58:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00150818
Message ID:
00151479
Vues:
26
Hi Vlad,

>>The ODER BY *must* be in the final SELECT only. Since the Help does *not* say any restrictions about TOP, I would suppoose that it *also* should be in the last select.
>
>Why in the last one?
>
The word "suppose" (misspelled though) is intended to imply that it is a guess. Since TOP is tightly related to ORDER BY, I made that connection (possibly erroneously, but that is why "suppose" is in there).

>>Oh Darn - I just also noticed that you do *not* select any fields! This is a *must do too, in *both* selects (even if you want "*" for all fields).
>
>WHY??
>
Later, I saw there was an *. Not having seen it while responding, it simply made sense to me that, especially for a UNION, where *all* SELECTS must result in identical field content with identical formats, that this would be a requirement. If you know differently, why not say so instead of just typing "WHY"??

Cheers,

Jim N

>Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform