Question: See the following schema for instance : Student (student_id integer, name varchar(45), gpa varchar(35), adv_id integer (fk), email varchar(33) ) The primary key is defined
See the following schema for instance
: Student (student_id integer, name varchar(45), gpa varchar(35), adv_id integer (fk), email varchar(33) )
The primary key is defined using underlined attributes
. Constraints:
PK: student_id
FK: adv_id refers to advisor (advisor_id)
CK (check): gpa >= 0 and gpa <= 4
UK (unique): email
In the SQL developer, create a new SQL work sheet. Write SQL create statements to create tables from the relational schema
You will create four tables with their constraints.
Make sure you create the parent tables first and then the child tables
please solve this sql
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
