Question: Create a Relational Model (the CREATE TABLE statements) for the following database: We have students; each student has a unique Id, name, address, gender, and

Create a Relational Model (the CREATE TABLE statements) for the following database: We have students; each student has a unique Id, name, address, gender, and overall GPA (has default value of 0). Each student must have one major (mandatory attribute) and optionally one minor. The model must check that the gender takes values either "Male" or "Female" We have courses, each course has a unique Courseld, title, and number of credits Students will register in courses in certain semesters. We need to keep track of the grade that a student has received in a given course. The model should allow a student to take the same course in different semesters. Your CREATE TABLE statements should clearly indicate the following: 1) The attribute names and their data types (choose appropriate types), 2) The primary keys in each table, 3) The NULL (or NOT NULL) and the DEFUALT constraints, 4) The CHECK domain constrains, and 5) The foreign key constraints
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
