Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select SQL Filter Conditions
Message
De
02/04/1999 08:06:40
Paul Frost
Instem Computer Systems Ltd
Stone, Royaume Uni
 
 
À
02/04/1999 07:59:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00204588
Message ID:
00204593
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform