Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using SQL theory d. List all Customer IDs, the Order ID of the orders they have submitted if any, and the employee ID that handled
using SQL theory
d. List all Customer IDs, the Order ID of the orders they have submitted if any, and the employee ID that handled the order. All employees (including those who have never handled an order) and all customer IDs (including those who have never submitted an order) must also be listed. The list must be ordered in ascending order of the employeeld, and then in ascending order of the orderid (if the employee is listed more than once). A sample of the expected result from a different data set is provided below: Customer ID ABCD has never submitted an order and employee ID 55 and employee ID 4 have never handled an order. CustomerID OrderID EmployeeID ABCD DCBA 11231 11 DCBA 10101 2 EBAC 11123 2 4 55 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