Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select SQL Filter Conditions
Message
From
03/04/1999 00:11:24
 
 
To
02/04/1999 07:59:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00204588
Message ID:
00204883
Views:
19
>I need a select SQL statement for a medical system that select records matching something like:
>
>admitted during a set period
>status=urgent
>lead consultant=Smith OR lead consultant=Jones
>
>without the OR requirement it is easy but how can I use the OR filter when I have more than one other filter?

If the number of consultants in the list is not more than about 20 then try
WHERE... AND INLIST(lead_consultant, "Smith ", Jones ")
being careful to PADR the names to the correct number of characters
Previous
Reply
Map
View

Click here to load this message in the networking platform