Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing a SQL to avoid using a UNION
Message
From
13/08/2001 13:02:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Optimizing a SQL to avoid using a UNION
Miscellaneous
Thread ID:
00543106
Message ID:
00543106
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform