Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!