Question: CREATE VIEW employee _ support AS SELECT employee.first _ name, employee.last _ name, count ( * ) as customer _ count FROM employee INNER JOIN

CREATE VIEW employee_support
AS
SELECT employee.first_name, employee.last_name, count(*) as customer_count
FROM employee
INNER JOIN customer
ON employee.employee_id = customer.support_rep_id
GROUP BY employee.first_name, employee.last_name;
How would you query the view to display the results in ascending order of the customer_count?
a.)
SELECT * FROM employee_support
ORDER BY customer_count;
b.)
SELECT * FROM employee_support
ORDER BY customer_count DESC;
c.)
SELECT * FROM customer_support
ORDER BY employee_count DESC;
d.)
SELECT COUNT(*) FROM employee_support;

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!