Suppose you have two tables:
Musicians
- musicianID (primary key, int)
- name (varchar)
- instrument (varchar)
Gigs
- GigID (primary key, int)
- musicianID (foreign key from Musicians)
- location (varchar)
How would I retrieve the musicianIDs which have not played a gig i.e. that don't have a reference in the Gigs table?
Thanks!