What is relational algebra for this SQL for rows with values that appear more than 3 times?
select e.id, e.name, e.dno, COUNT(w.id) AS TOTAL_PROJECTS
from employee e,
works_on w
where e.id = w.id
group by e.id
HAVING TOTAL_PROJECTS > 3;
Tables:
Employee (id, name, salary, dno)
Department (dno, dname, Mgr_id)
Project(Pno,Pname,dno)
Works_on(id, Pno, No_of_hrs)