Group By and Having
select * from r group by attributeselect dept_name, ID, avg (salary)
from instructor
group by dept_name;select * from r where P1 group by attribute having P2Last updated
select * from r group by attributeselect dept_name, ID, avg (salary)
from instructor
group by dept_name;select * from r where P1 group by attribute having P2Last updated