Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the three relations Student, Course , Student _ Course given below. Given that StudID is the primary key of Student, Rollno and StudPANNo are

Consider the three relations Student, Course ,Student_Course given below. Given that StudID is the primary key of Student, Rollno and
StudPANNo are the unique keys of Student relation, Cid is the primary key of Course, and there is a referential integrity between Course.CID
and Student.CID (Student.CID refers Course.CID). And we have a relationship relation Student_Course from M:N relationship between Student
and Course, and its primary key is combination of CID and StudID.
Discuss the integrity constraints(at least 5) that are violated.
[5 Marks]
CourseConsider following three relations Student({Lname.Fname,StudId,Major}) Grades({StudID,CrsId,Grade}) Course({Cname,CrsId,Points,Dept}) You have three relations(Student,Grades and Course). Optimize the following query using optimization heuristics StudId,Lname(s.StudID=g.StudId ^ g.CrsId=c.CrsId ^ Grade =`A+'^ Major =`Math'^ Dept =`Comp'(Course x Grades)))
image text in transcribed

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

Real Time Database Systems Architecture And Techniques

Authors: Kam-Yiu Lam ,Tei-Wei Kuo

1st Edition

1475784023, 978-1475784022

More Books

Students also viewed these Databases questions