Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What am I doing wrong with this query
Message
 
À
27/02/2007 18:56:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01199358
Message ID:
01199409
Vues:
17
Simplicio
you are right . i dont have nulls but have some blanks that causing this issue.
i changed to following and it worked beautifully
SELECT * FROM it WHERE
(!EMPTY(code) AND INLIST(ALLTRIM(code),'PT01','PT02','PT03','PT04')) OR
(!EMPTY(usercode) AND INLIST(ALLTRIM(usercode),'PT01','PT02','PT03','PT04'))

Thanks for ur help
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform