Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select SQL Filter Conditions
Message
From
02/04/1999 08:06:40
Paul Frost
Instem Computer Systems Ltd
Stone, United Kingdom
 
 
To
02/04/1999 07:59:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00204588
Message ID:
00204593
Views:
13
>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?

I may be not understanding what you are asking, but putting everything in brackets may simplfy things :

(admitted during a set period) AND
(status=urgent) AND
((lead consultant=Smith) OR (lead consultant=Jones))
AND
(other filter)

Paul
Previous
Reply
Map
View

Click here to load this message in the networking platform