Jump to content

Query for non-existance


rmeeuwsen

Recommended Posts

I have two tables who both contain a field songwriter. 1 table is for a top 100 listing and the other is for songwriters. Songwriters may or may not occur in the top 100 table. How can I define a query that gives me all the songwriters that do not occur in the top 100 table?

 

Thanks in advance!

 

Robin Meeuwsen

Link to comment
Share on other sites

OK. Another approach:

 

3 tables,

 

tbl_projects

-----------------

project_id

name

 

tbl_employees

---------------------

employee_id

name

 

tbl_x

-------

x_id

project_id

employee_id

 

An employee can be working on several projects and a project can be worked by several employees. To create these relationships I created tbl_x which stores a record for every relationship. Now what I want to generate a list with all employees that are not working on any project.

 

Thanks in advance!

 

Robin Meeuwsen

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.