Question: Please complete 13-21 and please make it readable. thank you HW-algebra 2 Instructions There are 5 tables: student (sID, sname, age, major, alD) Here alD
Please complete 13-21 and please make it readable. thank you
HW-algebra 2 Instructions There are 5 tables: student (sID, sname, age, major, alD) Here alD is advisor ID, same as faculty ID. course cno, cname, credits, dept) faculty (fID, name, dept) take(sID. cno, year. semester, grade) teach(fID. cno. year. semester) Please answer the following queries using relational algebra. 1-12 were given as last homework. 13. Count the number of students in each major 14. Find the major with less than 100 students. 15. Calculate the total credits taken by student of SID S1111. 16. What the average grade for CS100 in each semester. 17. Who is the oldest student? (show SID) 18. List cno and cname of CS department's 4-credit courses. 19. Find the students who never gotten an F. (Show student ID.) 20 List Professor Jack Smith's advisees: show student ID and name. 21. List the students who have the same names as someone else's. Show student ID
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
