Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What am I doing wrong with this query
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
What am I doing wrong with this query
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01199358
Message ID:
01199358
Vues:
64
Hi friends
i've following query which returns all records ignoring WHERE clause
SELECT it.pkey,it.code,it.usercode ;
FROM it ;
WHERE EMPTY(it.status) AND ;
(INLIST(ALLTRIM(UPPER(it.code)),'PT01','PT02','PT03','PT04') OR ;
INLIST(ALLTRIM(UPPER(it.usercode)),'PT01','PT02','PT03','PT04')) ;
INTO CURSOR cPts NOFILTER 
where as following returns only records i want ! what am i doing wrong above

select it
BROWSE FOR EMPTY(it.status) AND (INLIST(ALLTRIM(UPPER(code)),'PT01','PT02','PT03','PT04') OR INLIST(ALLTRIM(UPPER(usercode)),'PT01','PT02','PT03','PT04'))

Thanks for ur advise.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform