Assignment 2 - RA

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Assignment No.

CS220 Database Systems

Total Marks:10

NUST is a large university comprising multiple schools, each offering several degree programs.
Every degree program has four batches, corresponding to the four years of study (1st year to 4th
year). Each batch is divided into two sections, and every section contains 50 students. The
university tracks the academic details of students, their program, batch, and section in a
centralized database.

 Students (Student_ID, Name, Section_ID, Batch_Year, Program_ID, School_ID)


 Schools (School_ID, Name)
 Programs (Program_ID, Name, School_ID)
 Sections (Section_ID, Batch_Year, Program_ID, Section_Number)
(each program has sections for all four years, with two sections per batch).

Write down Relational Algebra and SQL queries of the following requirements (Hand written):

1. Report all the students enrolled in the 4th-year batch this year.
2. Report all sections for the 1st-year batch of the "Computer Science" program.
3. Report all students from the "Electrical Engineering" program who are in section 2.
4. Report all degree programs offered by the "School of Mechanical Engineering".
5. Report all students who are enrolled in the "Computer Science" program in the 2nd-year
batch.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy