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 customersupport
AS
SELECT customer.firstname AS custfirstname, customer.lastname AS custlastname,
employee.firstname AS empfirstname, employee.lastname AS emplastname
FROM employee
INNER JOIN customer
ON employee.employeeid customer.supportrepid;
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 customersupport
ORDER BY emplastname DESC, custlastname DESC;
b
SELECT FROM customersupport
ORDER BY custlastname, emplastname;
c
SELECT FROM customersupport
ORDER BY custlastname ASC, emplastname ASC;
d
SELECT FROM customersupport
ORDER BY emplastname, custlastname;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
