Good Day Everyone, I am having a hard time doing this query where in I needed to List the boat name, owner number, owner last name, and owner first name for each boat in Marina 1.
I have a table of marina_slip
and marina_owner
I have code of
SELECT ms.boat_name, ms.owner_num, o.last_name, o.first_name
FROM marina_slip ms, owner o
WHERE o.owner_num IN(SELECT ms.owner_num FROM marina_slip ms WHERE marina_num = '1');
the output is correct but it is repeatinng
query_output