Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTIONS 3, 4, 5, 6 and 7 REFER TO THE RELATIONAL TABLES LISTED BELOW CHEATE TABLE STAFF ENUM DECIMAL (12) NOT NULL 7. Staft employee

image text in transcribed
image text in transcribed
QUESTIONS 3, 4, 5, 6 and 7 REFER TO THE RELATIONAL TABLES LISTED BELOW CHEATE TABLE STAFF ENUM DECIMAL (12) NOT NULL 7. Staft employee number FNAME VARCHAR(50) NOT NULL, First name LNAME VARCHAR (50) NOT NULL 7. Last name DOD DATE NULL. 1 Date of birth CONSTRAINT SZAFF_PKEY PRIMARY KEY (ENUM) : CREATE TABLE DRIVER ENUM DECIMAL (12) NOT NULLA 7. staff employee number LNUM DECIMAL (8) NOT NULL / Driving license number STATUS VARCHAR(10) NOT NULL, Driver status CONSTRAINT DRIVER_PKEY PRIMARY KEY (ENUM). CONSTRAINT DRIVER UNIQUE UNIQUE (LINUM). CONSTRAINT DRIVER FREY FOREIGN KEYLENUM) REFERENCES STAFF IENUM), CONSTRAINT DRIVER STATUS CHECK STATUS IN AVAILABLE, IN SERVICE, ON LEAVE CREATE TABLE TRUCK REGNUM VARCHAR(10) NOT NULL 1. Registration number CAPACITY DECIMAL (7) NOT NULL / Capacity WEIGHT DECIMAL (7) NOT NULL, /Weight STATUS VARCHAR(10) NOT NULL 7. Present status CONSTRAINT TRUCK PREY PRIMARY KEY REGNUM), CONSTRAINT TRUCK STATUS CHECK (STATUS IN "AVAILABLE", USED, MAINTAINED). CONSTRAINT TRUCK_WEIGHT CHECK (WEIGHT > 0.0 AND WEIGHT 0.0 AND CAPACITY

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

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

Use Problem 41 to conclude that Diverges? 8. +f++{+*

Answered: 1 week ago