Find Records in a table that are not in other tables

  • I have 3 tables (CO, UI, PI) and for this example each table only has one variable (ID).

    I need to know:

    1. Which records in the CO table are in the UI table but NOT the PI table.

    2. Which records in the CO table are not in UI table or in the PI table.

    The ID field is an integer in each of the 3 tables.

    I did a search for this because I'm sure it's not too difficult, but I wasn't sure how to word the search criteria.

    Thanks!

  • Please have a look at IN (and NOT IN) predicate of WHERE clause in Books On Line.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply