Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What am I doing wrong with this query
Message
From
27/02/2007 17:14:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
What am I doing wrong with this query
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01199358
Message ID:
01199358
Views:
62
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.
Next
Reply
Map
View

Click here to load this message in the networking platform