Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Modeling and Database Design

Authors: Narayan S. Umanath, Richard W. Scammel

2nd edition

1285085256, 978-1285085258

More Books

Students also viewed these Databases questions

Question

Find the median for the set of measurements 2, 9, 11, 5, 6.

Answered: 1 week ago

Question

What complicates the mapping of 1:1 cardinality ratios?

Answered: 1 week ago