Skip to content
Advertisement

How to select values that exist in one table but no in another?

I’d like to know how to find the names (namn) of the people who have taught on a course (kkod) but have never been course coordinator (kansv). Is it a minus operation (not exists operation)? The result should look like:

The results above should be retrieved from the two following tables: table tf;

and table uv;

Appriciate the help!

Advertisement

Answer

In SQLIte, you can use except:

Alternatively:

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