Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started