Write a query that will indicate which employee has been booked off for the most number of days by doctor ‘D0001’. Display the employee name and surname, doctor name, and the number of days.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 59P
icon
Related questions
Question

Write a query that will indicate which employee has been booked off for the most
number of days by doctor ‘D0001’. Display the employee name and surname,
doctor name, and the number of days.


Sample Results:
EMPLOYEE_NAME  EMPLOYEE_SURNAME DOCTOR_NAME NUMBER_OF_DAYS
Andrew                         Crouch                    Thabo Ntlali                     4

Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning