Product(pid, name, type, manufacturer, price) Buys(cid, pid) Customer(cid, cname, age, gender) Write the following queries: mare who have nnhn 2.* e Urneapest eApenaiv 3. Find the most expensive product from each manufacturer 4. Find products that not being purchased 5. Find the names of all customers who have purchased the most expensive product.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter1: Overview Of Database Concepts
Section: Chapter Questions
Problem 16MC
icon
Related questions
Question

write the following queries

Consider the following schema (keys are underlined):
Product(pid, name, type, manufacturer, price)
Buys(cid, pid)
Customer(cid, cname, age, gender)
Write the following queries:
more Arho have nUrak---
2.
UIe Cieapest experiaivY
3. Find the most expensive product from each manufacturer
4. Find products that not being purchased
5. Find the names of all customers who have purchased the most expensive product.
Transcribed Image Text:Consider the following schema (keys are underlined): Product(pid, name, type, manufacturer, price) Buys(cid, pid) Customer(cid, cname, age, gender) Write the following queries: more Arho have nUrak--- 2. UIe Cieapest experiaivY 3. Find the most expensive product from each manufacturer 4. Find products that not being purchased 5. Find the names of all customers who have purchased the most expensive product.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning