|< < 7 > >|
Internally, the view is stored unevaluated.
Create a view to give the count of current students by major. create view students_by_major as select d.name, count(*) from student s join department d on (s.major_dept_id = d.dept_id) group by d.name
create view students_by_major as select d.name, count(*) from student s join department d on (s.major_dept_id = d.dept_id) group by d.name