Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I was doing more SQL work and these are the questions I got stuck on table: The queries listed below must be implemented as SELECT
I was doing more SQL work and these are the questions I got stuck on
table:
The queries listed below must be implemented as SELECT statements with JOIN or OUTER JOIN operation.
- Find the first and the last name of the drivers who are on leave at the moment.
- Find the registration numbers of trucks that are used just now and that have been used for at least one trip in 2016.
- Find the first and the last names of drivers who performed at least one trip in January 2016. It is your task to find an appropriate standard function that can be used to extract a month and year from a date.
- Find the first and last names of employees who are not drivers.
- Find the first and last names of drivers who performed no trips so far.
- Find the total number of trips performed by each driver. List the driving licence numbers associated with the total number of trips. Do not ignore the drivers who performed no trips so far.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started