Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unmatching
Message
From
23/06/2009 08:31:08
 
 
To
23/06/2009 03:30:20
Muthu Vel
Sty Company
India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01407733
Message ID:
01407749
Views:
38
>I have two tables namely 1. "studenta.dbf" with fields 1. id 2. name 3. dob 4. community 4. nationality 5. phy 6.maths 7. chemistry 8.total and another table namely 2."studentb.dbf" this table having same "studenta" table fields so both the tables having same fields and records. I want compare the two tables and extract the unmatched records and these records will sent report designer which I have already created.
>
> How to write code?

Assuming that you match records by ID it may look following:
Select * From StudentA Where ID Not in (Select ID From StudentB) ;
Union All Select * From StudentB Where ID Not In (Select ID From StudentA) Into Cursor Mycursor Nofilter
If you match by name then adjust it a bit, i.e. use Name instead of ID.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform