Skip to content
Advertisement

How do I do NOT CONTAINS?

I’m having difficulties with a question on an assignment and writing the correct query. I’ve been at it for days, and it’s due soon. I’m trying to show all project numbers that do not contain employee id’s of 114 and 113 (the application designers). Looking at the table data, I can see without writing code that the project numbers are 15 and 18, but I can’t get that output. This code simply outputs everything except 114 and 113 employees.

This is the question:

Which Project does not utilise an Application Designer?

This is my code:

This is my codes output:

[1]

This is my table data:

enter image description here

Preferred output: My preferred output is just the project numbers 15 and 18

Advertisement

Answer

You can use not exists

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement