Csit Notes

Consider the following relational schema: \(\text{Student}(\underline{SID}, SName, Dept, Year)\)…

  • CSC265
  • Core Course
  • Question 2 · 2082 B.S.

Consider the following relational schema: \(\text{Student}(\underline{SID}, SName, Dept, Year)\) \(\text{Course}(\underline{CID}, CName, Credit)\) \(\text{Enroll}(\underline{SID, CID}, Grade)\) Specify the following queries in both SQL and Relational Algebra on this database schema: a) List names of students from the "CSIT" department whose name starts from A. b) Display student names and course names they have enrolled in. c) Count total students enrolled in each course. d) Update grade 'B' to 'A' for all students in "DBMS". e) Delete records of students whose Year is 2024.

Answer

The verified answer for this question is being prepared. Meanwhile, the chapter notes cover this topic, and you can contribute your own solution.