Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Consider the following relational schema: Student (roll, name, mob, cgpa, city, age) Faculty ( fid, fname, doj. salary, specialization) Teach (fid, roll, sem) Domain

image text in transcribed
4. Consider the following relational schema: Student (roll, name, mob, cgpa, city, age) Faculty ( fid, fname, doj. salary, specialization) Teach (fid, roll, sem) Domain (specialization, subject) Primary keys are underlined. Solve the following queries using the relational calculus. [ [1x] a. Find the students whose cgpa >8.0 and staying at 'BBS'. b. Find the faculty manes who are teacing in 4th semester. c. Find the faculty names who are teaching to the 'BBS' students. d. Display the students' names and rolls who are taugt by all faculty members. e. Find the faculty names who are teaching to the 'BBS' students and teaching 'DBMS' subject. 5 . a. There are different organizations available for which we are interested to store the unique orgid along with orgname and domain. Each organization is conducting one annual fest (unique festid, festname, budget and theme) in each session. Many people are coming to the annual fest. Each person has unique prid along with prname, age and contact(s). The people can be categorized as either Employee (with salary) or Student (with cgpa) or Staff (with working_hours). Employees are managing Students. Similarly, Staffs are managing Students. Each annual fest contains many events (identified by unique evid along with evname and category). The students are participating in one or more events. Similarly, many students are participating in an event. There are different students treated as event managers for different events. Each event contains different rewards. Each reward has a rewardname and prize. Each reward can be identified by rewardname once the event is known. Draw the entity-relationship diagram for the above system. Make necessary assumption. [3 Marks] b. Convert the above ER diagram into relational schemas and specify primary and foreign keys. [2 Marks]

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions