Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 4 (University Database) [25 Points Create a Relational Model (the CREATE TABLE statements) for the following database: We have students; each student has a
Problem 4 (University Database) [25 Points 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 (number, NOT letter) 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
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