Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare Tables
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00614962
Message ID:
00614978
Views:
17
>Anyone very had to records in two different tables? In other words, table A is the mother table. Table B has entries from table A as the child. I want to be able to comaper the two tables and give a result if the the record in table B exists in table A.

Use a nested select statement:
SELECT keyfield, field1, field2, FROM tableA;
  WHERE keyfield IN (SELECT keyfield from tableB)
This gets fields from a record in Table A which has a field which appears in Table B.
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform