Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimizing a SQL to avoid using a UNION
Message
De
13/08/2001 13:02:58
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Optimizing a SQL to avoid using a UNION
Divers
Thread ID:
00543106
Message ID:
00543106
Vues:
57
I have a SQL where I am using a UNION. I would like to know if there would be a way to obtain the same without using the UNION.

The SQL is like this:
SELECT MainTable.Numero FROM MainTable INNER JOIN ChildTable;
 ON MainTable.IGroupe=ChildTable.IGroupe WHERE ChildTable.No_Membre=7;
 UNION;
SELECT MainTable.Numero FROM MainTable WHERE MainTable.IGroupe=0
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform