Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following view that has been created: CREATE VIEW customer _ support AS SELECT customer.first _ name AS cust _ first _ name, customer.last

Consider the following view that has been created:
CREATE VIEW customer_support
AS
SELECT customer.first_name AS cust_first_name, customer.last_name AS cust_last_name,
employee.first_name AS emp_first_name, employee.last_name AS emp_last_name
FROM employee
INNER JOIN customer
ON employee.employee_id = customer.support_rep_id;
How would you query the view to order the names by the employee's last name followed by the customer's last name, in alphabetical order?
a.)
SELECT * FROM customer_support
ORDER BY emp_last_name DESC, cust_last_name DESC;
b.)
SELECT * FROM customer_support
ORDER BY cust_last_name, emp_last_name;
c.)
SELECT * FROM customer_support
ORDER BY cust_last_name ASC, emp_last_name ASC;
d.)
SELECT * FROM customer_support
ORDER BY emp_last_name, cust_last_name;

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

Students also viewed these Databases questions