Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing two separate tables
Message
 
To
08/11/1996 13:30:50
Tony Catalano
Bennett and Williams Eci
Columbus, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00011841
Message ID:
00011849
Views:
28
>I'm stuck. For the past month I have been trying to compare the contents of two tables within a data base, and identify any records that do not match. Each table (named pam93a & pam93b) contains 39 records, 10 fields long. The records that do not match are to be added to an "output" table. I have checked and double checked my code, but the program still has bugs in it. I purposely inserted, into pam93a, two mistakes, in order to see if the program would pick up on it. Instead of printing the two records that contain the mistakes it printed 1482 records, way more than the 39 in the table! Like I said, I'm stuck! If anyone can help I'd truely appreciate it. The actual code is listed below (It's Short)

Tony

Look in SQl - Select under 'Outer Joins'. Find all the docs you can get on this. It is actually the best & fastest way that I know of.

HTH,
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Reply
Map
View

Click here to load this message in the networking platform