Back to the 2025 paper

Module 2: Relational Query Languages & Design

202510m

Consider:

  • Student(SID, Name, Dept, Age)
  • Course(CID, CName, Faculty)
  • Enroll(SID, CID, Marks)
  1. Write relational algebra expressions to find:
    • a) Students enrolled in DBMS
    • b) Students scoring >80 marks
    • c) Students not enrolled in any course
  2. Write SQL queries:
    • a) Find highest marks
    • b) Find average marks department-wise
    • c) Display students enrolled in more than two courses
  3. Translate the following query into tuple relational calculus:
    • "Find names of students from CSE department."
  4. Convert the following relational algebra into SQL:
    • πName(σMarks>85(StudentEnroll))\pi_{Name}(\sigma_{Marks > 85}(Student \bowtie Enroll))

Similar questions