Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 ( 2 . 0 marks ) Use the methods find ( ) and pretty ( ) to implement the following queries. ( 1

Task 1(2.0 marks)
Use the methods find() and pretty() to implement the following queries.
(1) Display in a pretty format information about an employee number 11. Do not list information about trips performed by the employee.
(2) Display in a pretty format information about all mechanics. For each mechanic list only employee number, name, and position.
(3) Display in a pretty format information about the trucks with the registration numbers PKR768 and PKR008 and SST005. Do not list identifiers of the documents.
(4) Find the total number of employees.
(5) Find the total number of mechanics.
(6) Display in a pretty format the names and positions of all employees;
(7) Display in a pretty format the registrations number of all trucks maintained by John Fox. there is no need to remove duplicates from a listing.
(8) Display in a pretty format the names of mechanics who maintained a car with a registration LUCY01.
(9) Display in a pretty format the names of drivers who performed no trips so far.
(10) Display in a pretty format names of drivers who started at least on trip in Wollongong.
image text in transcribed

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

More Books

Students also viewed these Databases questions