0% found this document useful (0 votes)
15 views1 page

Lab 04

This document outlines a lab exercise for the DS604 Introduction to Data Management course, focusing on querying operations using Relational Algebra and SQL on the ACAD database. Students are required to write and perform specific queries related to faculty, students, courses, and grades for various semesters. The submission must include handwritten algebraic expressions and SQL statements compiled into a single PDF file.

Uploaded by

hahaha hahaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Lab 04

This document outlines a lab exercise for the DS604 Introduction to Data Management course, focusing on querying operations using Relational Algebra and SQL on the ACAD database. Students are required to write and perform specific queries related to faculty, students, courses, and grades for various semesters. The submission must include handwritten algebraic expressions and SQL statements compiled into a single PDF file.

Uploaded by

hahaha hahaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab04 Querying operations on relations .

2
DS604 Introduction to Data Management, Autumn’2024; pm_jat @ daiict

In this lab too, you practice querying databases using Relational Algebra and SQL.

Here you write and perform some queries on the ACAD database. The database instance
(named as acad) with some sample data is also available in the “public” database on the
same server.

Here is database schema diagram for your reference:

Your goal here is to write relational algebra expressions and SQL statements for
answering the following queries. [Algebraic expressions can be handwritten and scanned
for submission]

1. List Faculty (ID, Name) for all courses of Autumn'2010


2. List Students (ID, Name) from batch 2008 registered for course MT101 in
Autumn'2008.
3. List Students (ID, Name) from B Tech (progid='01') batch 2008 registered for course
MT101 in Autumn'2008.
4. List courses that were offered but students were not registered in those offerings
5. List students (id, name, courseno, grade) who got 'F' grade in Autumn'2008
6. List Courses (Course No, Title, Credits) offered by Instructor (ID='PMJ') in semester
Winter'2010.
7. Produce transcript of student '200711002' for Academic year 2008-09
List Course No, Course Name, Course Credit, Grade
8. List ID of students who have taken both courses - 'MT101' AND 'MT104'.
9. List ID of students who have taken 'MT101' but not 'MT104'

[Submission Required: Query Expressions in Relational Algebra and SQL]

Submission Instructions: Submit everything in a single PDF file.

You might also like