Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

1)Consider the following schema:
Suppliers(sid: integer, sname: string, address: string, country: string)
Parts(pid: integer, pname: string, color: string, weight: real)
Catalog(sid: integer, pid: integer, cost: real)
The Catalog relation lists the prices charged for parts by Suppliers. Write the following queries
in SQL:
1. Write SQL statements to create these tables with the proper primary key and foreignkey constraints
2. Find the snames of all Chinese suppliers
3. Find the pnames of parts supplied by American suppliers
4. Find the pnames of parts for which there is some supplier.
5. Find the pnames of green parts that are not supplied by Italian suppliers.
6. Find the snames of suppliers who supply every part.
7. Find the snames of suppliers who supply every red part.
8. Find the names of parts supplied by Acme Widget Suppliers and no one else.
9. Find the sids of suppliers who charge more for some part than the average cost ofthat part (averaged over all the suppliers who supply that part).
10.For each part, find the name of the supplier who charges the most for that part.
11. Find the sids of suppliers who supply only red parts.
12.Find the sids of suppliers who supply a red part and a green part.
13.Find the sids of suppliers who supply a red part or a green part.
14.Find the average weight of red parts for suppliers from each country that has at least 2suppliers.
15.For every supplier that only supplies green parts, print the name of the supplier and thetotal number of parts that she supplies.
16.For every supplier that supplies a green part and a red part, print the name and price ofthe most expensive part that she supplies. 

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9652368

Have any Question?


Related Questions in Computer Engineering

In 2005 team dad used a toyota truck with a system of

In 2005, Team DAD used a Toyota truck with a system of spinning lasers as its "visual" system. What advantages and or disadvantage does such a system have compared to camera-based systems?

Specifically you will create an e-commerce application

Specifically, you will create an e-Commerce application using PHP and HTML that allows a user to login to a website, select several products for purchase and then place an order for those items selected. The type of prod ...

Assume that todayis your 25thnbspbirthday and have an

Assume that todayis your 25th birthday and have an annual salary of $60,000 (+ super). Your salary is expected to grow by 3% per year before reaching retirement age (your 65th birthday). You are currently doing some rese ...

What is vsftpd name two other server packages that may be

What is vsftpd? Name two other server packages that may be used for the same purpose

Question bull what is the significance of the concept of

Question : • What is the significance of the concept of inheritance within the concept of object oriented programming? How does the concept of inheritance improve on the traditional programming model? • Provide a program ...

Question summarize the human-computer interface hci of

Question : Summarize the human-computer interface (HCI) of Microsft Word 2013 and Microsoft Visio 2013. Explain the importance of HCI and usability of the software. Be sure to note any commonalities between the applicati ...

Broussard skateboards sales are expected to increase by 20

Broussard Skateboard's sales are expected to increase by 20% from $8.4 million in 2015 to $10.08 million in 2016. Its assets totaled $5 million at the end of 2015. Broussard is already at full capacity, so its assets mus ...

Query to reterieve data from a customers table in mysql for

Query to reterieve data from a customers table in MySQL for instance who have not placed any orders yet, How to sort results by customers number,How to Modify the query to list customers who have placed fewer than five o ...

Question need to discuss on issues and security

Question: Need to discuss on issues and security vulnerabilities caused by using 4 digit pin while accessing Banking. 1) Abstract 2) Acknowledgement 3) List of Abbreviations 4) Table of contents 5) List of tables 6) List ...

Please respondexplain the properties and characteristics of

PLEASE RESPOND Explain the properties and characteristics of Transmission Control Protocol/Internet Protocol (TCP/IP).

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As