Question: 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

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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
