Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNION Doesn't work
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01059492
Message ID:
01059493
Views:
8
>Hi:
>
>When I run the second SELECT I have no problem, but when I run it UNIONed with the first I get an error 'Command is missing required clause'
>
>What am I doing wrong?
>
>Thanx -
>
>Yossi
>
>
>SELECT lm_lotnum FROM it!lottmplt ;
>	UNION ;
>	SELECT TOP 1 lm_lotnum ;
>	FROM it!lotmast ;
>	ORDER BY 1 DESC ;
>	INTO CURSOR results
>
I get the same error. Apparently you can't use the TOP 1 clause. When I omit it, it works fine.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform