Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to combine two flds in one with on SQL Select?
Message
De
05/09/2005 16:13:45
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01046819
Message ID:
01046828
Vues:
19
>>>>
>>>>
>>>>SELECT ROOM1 ROOM,RES_DATE,RES_TIME;
>>>> FROM Table;
>>>>UNION;
>>>>SELECT ROOM2,RES_DATE,RES_TIME;
>>>> FROM Table WHERE NOT ROOM2==""
>>>>
>>>
>>>If I may ask you another question. For the above SQL Select, do you know if there is a way to have a separate WHERE clause for top SELECT and bottom SELECT of the UNION?
>>
>>Yes
>>
>>
>>SELECT ROOM1 ROOM,RES_DATE,RES_TIME;
>> FROM Table WHERE condition1;
>>UNION; && this is a distinct union ( like a UNION NEWS
>>SELECT ROOM2,RES_DATE,RES_TIME;
>>FROM Table WHERE condition2;
>>
>
>Thank you very much again, Fabio.

You're welcome.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform