Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
And and Or in one SQL Statement
Message
From
07/10/2004 09:34:18
 
 
To
07/10/2004 09:25:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00949508
Message ID:
00949510
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform