Display a list of all instructors, showing their ID, name, and the number of sections that they have taught. Make sure to show the number of sections as 0 for instructors who have not taught any section. Your query should use an outerjoin, and should not use scalar subqueries.

Is this the right answer:

select ID, name
from instructor natural left outer join
section
where sec_id = ID
having count (instr_id) > = 0;

1 answer

DFSDFGF