Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a table called instructors. The purpose of this table is to house the following information: An employee id column that is a number -
Create a table called instructors. The purpose of this table is to house the following information:
- An employee id column that is a number - this will be the primary key and it can't be left empty.
- A column with will store an F for full time or P for part time.
- A first name column that can hold up to 25 characters and can not be left empty
- A last name column that can hold up to 30 characters and can not be left empty
- An address column that can hold up to 10 characters and can not be left empty
- A salary column that stores salaries. Our top employee makes $125,000 a year. We want to make sure that if no values are presented, then the default salary of $45,000 a year is entered.
- A marital status column with a fixed length of 1 - we will store the values Y or N
- A column to represent the course that they prefer to teach - for example MAD103, WEB110, etc. Note that all course start with three letters and end with three numbers
If it is not noted, the column can be empty. Choose the best data type to meet the requirements listed here.
Create the appropriate SQL Statement that would build this 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