Answers for "Oracle SQL join three tables and group by column"

SQL
0

Oracle SQL join three tables and group by column

select
  t.name, 
  count(distinct r.idc) as number_of_classes
from
  teacher t
join 
  reserve r on r.idt = t.idt
join
  class c on c.idc = r.idc
group by 
  t.name
Posted by: Guest on November-24-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language