Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Given a relational database schema with the following relation schema: Student (roll, name), Sem_subject_offer(subcode, subname), Sub_registration(roll, subcode, grade) Write the queries using SQL, relational

image text in transcribed
3. Given a relational database schema with the following relation schema: Student (roll, name), Sem_subject_offer(subcode, subname), Sub_registration(roll, subcode, grade) Write the queries using SQL, relational algebra, tuple relational calculus, and domain relational calculus for each of the below: (a) Find the roll number and name of the students who have registered for all the subjects. (b) Find the name of the students who have secured Ex grade in all his/her registered subjects. (c) Find the name of the subjects for which maximum number of Ex grade were secured by the students. (d) Find the name of the subjects for which all its registered students secured only Ex grade. Also find the names of those students. (e) Find the name of those students who did not register for any of the subjects. [(0.5+0.5+0.5+0.5)5]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions