Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started