Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Display a list of all instructors, showing their ID, name, and the number of sections that they have taught. Make sure to show...Asked by joe
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;
Is this the right answer:
select ID, name
from instructor natural left outer join
section
where sec_id = ID
having count (instr_id) > = 0;
Answers
Answered by
DDFDSF
DFSDFGF