0% found this document useful (0 votes)
142 views1 page

CIS182 Homework 1

This homework assignment asks the student to create a database with three tables - Operators, Trips, and Vehicle. The Operators table requires fields for Seniority Number, First Name, Last Name, and Hire Date, with constraints on data types and values. The Trips table requires fields for Route Number, Start/End Locations, Start/End Times, and Effective Date, with constraints on times and dates. The Vehicle table requires fields for Manufacturer, Model, Model Year, and Purchase Date, with default values and constraints on years. The student must provide SQL code and screen prints.

Uploaded by

rriness
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views1 page

CIS182 Homework 1

This homework assignment asks the student to create a database with three tables - Operators, Trips, and Vehicle. The Operators table requires fields for Seniority Number, First Name, Last Name, and Hire Date, with constraints on data types and values. The Trips table requires fields for Route Number, Start/End Locations, Start/End Times, and Effective Date, with constraints on times and dates. The Vehicle table requires fields for Manufacturer, Model, Model Year, and Purchase Date, with default values and constraints on years. The student must provide SQL code and screen prints.

Uploaded by

rriness
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Name:___________________________

CIS-182
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 this sheet in with your SQL code and screen prints.

3/26/10

You might also like