Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select SQL Filter Conditions
Message
De
03/04/1999 00:11:24
 
 
À
02/04/1999 07:59:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00204588
Message ID:
00204883
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform