Jump to content

Checking Two Tables For Matching Records


c_pattle

Recommended Posts

I was just wondering if anyone knows what the most efficient way of checking to see if two tables contain matching records.

 

So for example I have a table called 'orders' which have a primary key of order_id.

 

Then I have a table called 'order_comments' which also has a field called order_id and I want to run a query that will check which orders don't have entries in order_comments.

 

Thanks for any help

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.