Question: Write the above queries through the information given from 6 tables (Q3, Q4, Q10) Note: Q10, only select by major but not the department. Student(snum:

Write the above queries through the information given from 6 tables (Q3, Q4, Q10) Note: Q10, only select by major but not the department.

Write the above queries through the information given from 6 tables (Q3,

Q4, Q10) Note: Q10, only select by major but not the department.

Student(snum: integer, sname: string, maior: string, level: string, age: integer) Class(name: string,

Student(snum: integer, sname: string, maior: string, level: string, age: integer) Class(name: string, meets at: time, room: string, fid: integer) Enrolled(snum: integer, cname: string) Faculty(fid: integer, fnarne: string, deptid: integer) Grade(snum, cname, score) Prerequisite(cname, prereqcname) 3. For each class, print the name of the class and name of student who topped the class. If 2 students have the same score, select the one who is younger. 4. Find the 2nd topper for class 'Operating System Design'. If there are two students with the same score, select the one whose name is lexicographically smallest. 10. Find youngest student by each department and major if their average grade score is more than 80 and order them by their name

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!