Vehicle
VehicleID
TypeCode R
YearNumber R
MakeCode R
ModelName R
PlateID R
StateCode R
Registration Date
VehicleEvent
VehicleID
EventNumber
Event
EventNumber
EventDateTime R
Location Desc R
ReportDesc
EventCode R
CauseEventNumber
ReportOfficerNumber R
Officer
OfficerNumber
BadgeNumber R
DepartmentCode R
FullName R
RankCode
Do not create the officer and Event tables. These tables are created, as examples, in Initialize.sql.
Create the Vehicle and VehicleEvent tables. Implement all diagram constraints, including keys and cardinality, in SQL. Specify
data types based on the column name suffix:
ID - fixed length, 8 characters
Number - unsigned integer
Code - fixed length, 3 characters
Name - variable length, max 30 characters
Date - date
To confirm that all four tables have been created, add the SHOW TABLES; statement.