Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper syntax when using UNION
Message
From
24/01/2002 13:21:01
 
 
To
24/01/2002 12:23:17
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00609414
Message ID:
00609908
Views:
22
>Use the following syntax:
>
>SELECT NOCLIENT,NOCAT,NUMERO,NOMEMBER,NOPARENT,NOTHREAD,ADDDATE,ADDHEURE,TITLE,.T. AS FLAG,1 AS ORDERF ;
> FROM THREAD WHERE NoClient=5 AND NUMERO>=600000;
>UNION SELECT NOCLIENT,NOCAT,NUMERO,NOMEMBER,NOPARENT,NOTHREAD,ADDDATE,ADDHEURE,TITLE,.T. AS FLAG,0 AS ORDERF;
> FROM THREAD WHERE NoClient<>5 AND NUMERO>=600000;
> ORDER BY ORDERF DESCENDING,NOCLIENT,NOCAT,NOTHREAD,NOPARENT INTO CURSOR TEMP READWRITE
>
Did you try that? This is not supported with UNION.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform