Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
And and Or in one SQL Statement
Message
 
 
À
07/10/2004 09:25:40
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00949508
Message ID:
00949509
Vues:
13
>How can I create an SQL statement that gets all records of one field value and the true condition of a second field or a not empty of a third field?

When in doubt, use parenthesis.
 WHERE (field1="ABC" AND field2) OR NOT EMPTY(field3)
*
 WHERE field1="ABC" AND (field2 OR NOT EMPTY(field3))
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform