Question: Exercise III: Structured Query Language (25 marks) Department(DeptId, Dname). Course(CrsId, Cname, DeptId). Student(StdId, Sname, level, DeptId). Enroll(StdId, CrsId, year). Evaluation(StdId, CrsId, grade, semester, DeptId). Lecturer(LId,
Exercise III: Structured Query Language (25 marks)
Department(DeptId, Dname).
Course(CrsId, Cname, DeptId).
Student(StdId, Sname, level, DeptId).
Enroll(StdId, CrsId, year).
Evaluation(StdId, CrsId, grade, semester, DeptId).
Lecturer(LId, Lname, rank, DeptId).
Teaching(LId, CrsId, semester, DeptId, year).
Express the following English queries in SQL
1. Find names of students who got A in the database in the Fall semester. (5 marks)
2. Find name of courses that 300 and 400 level computer science are taking together. (5 marks) 3. Find courses that Mr Hamid is teaching. (5 marks) 4. List names and Ids of students taught by Dr. Samura.(5 marks) 5. Find IDs and Name of students in 400 levels that have enrolled in a course that belongs to the computer science (CS) department.(5 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
