Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
And and Or in one SQL Statement
Message
De
07/10/2004 09:34:18
 
 
À
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:
00949510
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?

Steven

SELECT SomeTbl.* FROM SomeTbl WHERE SomeTbl.field1 = xyz AND ( SomeTbl.field2 = .T. OR !EMPTY(SomeTbl.field3) )

HTH
Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform