Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

From the relational database schema 1. write sql query to display a list of available Drivers sorted according to their clearance level. Display the drive's

From the relational database schema 

1. write sql query to display a list of available Drivers sorted according to their clearance level. Display the drive's license number, first name, last name and the clearance level.

2. Find the locations whose city names consist of one or more word is four character long ending with a 'k'. For each such location, display its street number, street name and city.

IMG_1687.jpeg

IMG_1686.jpeg


 Entity LANGUAGE COUNTRY COUNTRY_LANGUAGE LOCATION LOCATION TYPE DRIVER DRIVER_LANGUAGE VEHICLE VEHICLE_TYPE 

PASSENGER VEHICLE CARGO_VEHICLE OFFICIAL LANGUAGE DropOffLocID VIN StartTimeIntended EndTimelntended Start TimeActual EndTimeActual StartOdometerKM EndOdometerKM VIN Pass_seat_capacity VIN Carg_cfeet_capacity Carg_tons_capacity OfficialID LanguageCode INT CHAR DATETIME DATETIME DATETIME DATETIME INT INT CHAR TINYINT CHAR SMALLINT Decimal CHAR CHAR Off Lang_Preference CHAR 17 17 17 (5,2) 8 2 1 JONID Foreign key references LOCATION (LocationID) Foreign Key references VEHICLE(VIN) Format: DD-MM-YYYY HH:MM:SS Format: DD-MM-YYYY HH:MM:SS Format: DD-MM-YYYY HH:MM:SS Format: DD-MM-YYYY HH:MM:SS Primary Key, Foreign Key references VEHICLE(VIN) e.g., 1, 2, 3, ... Primary Key, Foreign Key references VEHICLE(VIN) e.g., 40, 210, 350 (1 cubic foot = 0.025 tons) e.g., 1, 5.25, 8.75 (1 ton = 40 cubic feet) Primary Key, Foreign key references OFFICIAL(OfficialID) Primary Key, Foreign Key references LANGUAGE(LanguageCode) 1, 2, 3, 4, 5, ... (1 is the highest preference)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

1 List of Available Drivers Sorted by Clearance Level Sql Code SELECT DriverLicenceNum DriverFirstNa... 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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

Students also viewed these Databases questions

Question

Describe the purpose of the SUBTRACT command in relational algebra.

Answered: 1 week ago

Question

Define functional dependence.

Answered: 1 week ago