Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

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

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago