>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 ;
> SELECTTOP1 lm_lotnum ;
> FROM it!lotmast ;
> ORDERBY1DESC ;
> INTOCURSOR results
>
I get the same error. Apparently you can't use the TOP 1 clause. When I omit it, it works fine.