Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q)5 Consider the following schema student (sid, name, gpa , deptname) enrol (cid, sid, grade) course (cid, deptname) faculty (fid, name, salary) a) Write an

image text in transcribed

Q)5 Consider the following schema student (sid, name, gpa , deptname) enrol (cid, sid, grade) course (cid, deptname) faculty (fid, name, salary) a) Write an SQL statement to list all the attributes for students who have never obtained a grade above 3.0. b) Convert the SQL statement in Q.2.a into a relational algebra expression. c) Create a schema in SQL similar to the student relation with additional constraints that: - the name attribute cannot be null, the default value for gpa attribute is 0, the value of gpa attribute should lie between 0 and 4

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

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions