Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax of multiple UNION clause
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00650671
Message ID:
00650679
Views:
23
This message has been marked as the solution to the initial question of the thread.
>Hi folks,
>
>Vfp 7 help file mentions about parenthesis to combine multiple unions in select sql command.
>
>I can't get it to work. Please help...
>
The parenthesis are not required. The following SELECT doesn't make much sense but demonstrates the use of UNION.
USE( Home(2) + "\data\employee")
SELECT * FROM employee WHERE last_name = "B" ;
UNION ;
	SELECT * FROM employee WHERE last_name = "P" ;
UNION ;
	SELECT * FROM employee WHERE last_name = "M"
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform