Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

Connect with your audience

Answered: 1 week ago