As an exercise, I am creating a database for a zoo. I have an Animal table, Zoo Location ZLoc and a Moving record Mrec table. The Zloc table has an attribute called region. I am trying to SELECT all animals that are in the 'North' region. Here is what I try, but it doesn't produce the expected results:
SELECT
nickname, region
FROM
Animal
JOIN MRec USING (Animal_ID)
JOIN ZLoc USING (ZLoc_ID)
WHERE region IN ‘North’;
nickname is the attribute for animals name. Mrec acts as the associative between animal and Zloc.
To clarify I am using Oracle SQL Developer And I have made sure the single 'quotes' are correct
'North'