Question: Using Relational Algebra Suppose you have five tables: I student ( sID , sname, age, major, aID) --- aID is advisor ID, same for faculty
Using Relational Algebra
Suppose you have five tables:
I student (sID, sname, age, major, aID) --- aID is advisor ID, same for faculty ID. course(cno, cname, credits, dept) faculty (fID, name, dept) take(sID, cno, year, semester, grade) (here, grade: 0-100) teach(fID, cno, year, semester)
Please answer the following queries using relational algebra.
1) Who got lower than average grade in CS100? Show sID.
2) Who is the oldest student? Show sname.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
