Hello
I am beginning to learn SQL and I am stuck trying to perform a simple query. Here are my 3 tables:
People:
ID: int(5)
Name: varchar(255)
Pets:
ID: int(5)
Name: varchar(255)
Type: varchar(255)
Ownership:
Person_ID int(5)
Pet_ID int(5)
The Ownership table makes the connection between a person and a pet.
I would like to extract the IDs of all the people who don't own a pet of type 'dog'. They are allowed to own pets of other types of course.
Please help, I am stuck with the mysql manual and going nowwhere
thanks