Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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