Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help comparing two tables
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00386341
Message ID:
00386396
Views:
13
>QUESTION ABOUT COMPARING 2 TABLES
>
>I HAVE TABLE1 WITH 24 LOGICAL FIELDS (100 RECORDS)
>
>I HAVE TABLE2 WITH A FEW OF TABLE1'S LOGICAL FIELDS SET TO .T.
>(200 RECORDS)
>
>I WHATS THE BEST WAY TO COMPARE THE TWO TABLES AND KNOW WHEN THERE IS A MATCH AND HOW MANY I AM MISSING WHEN THERE IS NOT A MATCH?
>
>THANKS FOR HELP,
>
>DON C.

I am not sure if it gives you the right result.

Try:

To get records that matches True:
SELECT * FROM Sample1 WHERE log IN (SELECT * FROM sample2 WHERE log )  
To get records that matches False:
SELECT * FROM Sample1 WHERE log NOT IN (SELECT * FROM sample2 WHERE log ) 
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform