the question is 'List the pids of all properties that do not have the metertype “advanced” installed. Use a sub-query in your answer.
This is the query i came up with
SELECT PROPERTYMETER.pid, METERTYPE.description
FROM PROPERTYMETER , METERTYPE
WHERE PROPERTYMETER.metertype = METERTYPE.metertype
AND description IN (SELECT description FROM METERTYPE WHERE description = 'conventional')
This is the result i got
The result is all good aside from the fact that pid 9 has both conventional and advanced metertype so i didnt really answer the question exactly right. What can i do to my query to make sure that the pid returned ONLY have metertype conventional?