Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help creating a UNION in a SQL!!
Message
 
 
À
02/11/1999 16:50:21
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00285763
Message ID:
00285786
Vues:
22
>Apparently my problem is that I don't have the right number of fields and/or the right types. What I am running into is the first SQL isn't looking at all the same files so I don't have the field names to reference or whatever I need to do to get them.
>
>Can someone explain this better than the online help and maybe give me a simple (yea right - is there such a thing with unions?) example or two?
>

Plus, any ORDER BY or GROUP BY clauses have to come at the end of the last select statement.

If you can issue the 2 select statements separately and come up with identical structures on the return cursors, then you can safely [usually] put a UNION between the 2 commands.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform