Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create the 4 tables in the provided diagram shown at the end of the assignment instructions. As you will see in the diagram, primary keys
- Create the 4 tables in the provided diagram shown at the end of the assignment instructions.
- As you will see in the diagram, primary keys (PKs) and foreign keys (FKs) are indicated. Ensure that you implement the constraints as specified, including the composite PK.
- All name and address type columns should not be null.
- Data types for student and professor IDs should be a numeric data type.
- Date columns should be a date data type.
- All other columns should be a variable character data type of an appropriate length.
- Next, you will make up some sample data that you will insert into each table.
- Add 3 students to the student table.
- All student IDs should be at least 5 digits long and start with the same number.
- Add 2 professors to the professor table.
- All professor IDs should be at least 4 digits long and start with the same number. It should not begin with the same number as the student IDs.
- Add 2 courses to the course table.
- Add each student to one of the courses. All students must have the same professor and start date.
- Add 3 students to the student table.
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