Question: Basic SQL Use the following schema to answer the queries below using SQL DEVICE [ dno , dtype, price] PROVIDER [ pno , pname, web]

Basic SQL Use the following schema to answer the queries below using SQL

DEVICE [dno, dtype, price] PROVIDER [pno, pname, web] SERVICE [dno, pno, servicedate]

SERVICE.dno references DEVICE.dno SERVICE.pno references PROVIDER.pno

bold is underline.

a) Find the dno for the most expensive device

b) Find all providers that have the work fast in the name

c) Find the number of different device types (dtype)

d) Give all details of devices with price more than $400

Advanced SQL

a) Which provider has serviced all devices that provider with pno 24 has also serviced

b) Which device has the highest average price

c) List providers (PNo) who have only serviced devices with dtype RouterX

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!