Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL help Homework #1-Creating Tables Create a database with the following tables, correctly identifying the data type for each field and implementing constraints as described.

SQL help

image text in transcribed

Homework #1-Creating Tables Create a database with the following tables, correctly identifying the data type for each field and implementing constraints as described. Primary keys and relationships will be added in the next assignment. Operators (Seniority Number, First Name, Last Name, Hire Date). All fields are required. Seniority number is four digits. Hire date must be less than tomorrow. Trips(Route Number, Start Location, Start Time, End Location, End Time, Effective Date) All fields are required. End Time must be greater than Start Time. Effective Date must be on or after January 1, 2000. Vehicle(Manufacturer, Model, Model Year, Purchase Date). Default value for Manufacturer is Gillig'; default value for Model Year is the current year. Model year must be less than or equal to the current year Turn in this file with your SQL code and screen prints

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions