Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select
Message
 
 
To
09/01/2011 08:44:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Select
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01495295
Message ID:
01495304
Views:
81
This message has been marked as a message which has helped to the initial question of the thread.
>i try as below not match , another select not work
>all fields is chr type
>
>CLOSE ALL
>USE A
>INDEX ON COLUMN2+COLUMN4+COLUMN9 TAG TEST1
>BROWSE
>USE B
>INDEX ON COLUMN2+COLUMN4+COLUMN9 TAG TEST2
>BROW
>SELECT * FROM A WHERE COLUMN2 NOT IN (SELECT COLUMN2 FROM B) INTO CURSOR MUCUR1&& no result
>
>SELECT * FROM A WHERE COLUMN2,COLUMN6  NOT IN (SELECT COLUMN2,COLUMN6 FROM B) INTO CURSOR MUCUR1&& error 
>
>thanks

Use NOT EXISTS, e.g.
SELECT * FROM A WHERE NOT EXISTS (SELECT 1 FROM B where ;

A.Column2 = B.Column2 and A.Column6 = B.Column6) INTO CURSOR MUCUR1 NOFILTER
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform