Answered step by step
Verified Expert Solution
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 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;
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
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