Now I have a sql needed to be converted to relational algebra. There are two tables: student and sc.
student has sno, sname, sage.
sc has sno, cno, grade.
How to translate the sql into relational algebra:
select sname from student where sage > 20 or sno in (select sno from sc where grade > 90);
I know it can be converted to union opertaion, but that is too complicated for many sqls like this. Are there any other methods?
I have a plan of sql server, but I could not understand what it means?
Any help with this would be great.
student has sno, sname, sage.
sc has sno, cno, grade.
How to translate the sql into relational algebra:
select sname from student where sage > 20 or sno in (select sno from sc where grade > 90);
I know it can be converted to union opertaion, but that is too complicated for many sqls like this. Are there any other methods?
I have a plan of sql server, but I could not understand what it means?
Any help with this would be great.
Comment