Question: CREATE VIEW employee _ support AS SELECT employee.first _ name, employee.last _ name, count ( * ) as customer _ count FROM employee INNER JOIN
CREATE VIEW employeesupport
AS
SELECT employee.firstname, employee.lastname, count as customercount
FROM employee
INNER JOIN customer
ON employee.employeeid customer.supportrepid
GROUP BY employee.firstname, employee.lastname;
How would you query the view to display the results in ascending order of the customercount?
a
SELECT FROM employeesupport
ORDER BY customercount;
b
SELECT FROM employeesupport
ORDER BY customercount DESC;
c
SELECT FROM customersupport
ORDER BY employeecount DESC;
d
SELECT COUNT FROM employeesupport;
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
