Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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. prepare the following queries in SQL:
1. prepare SQL statements to create these tables with the proper primary key and foreign
key 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 pnames 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 of that part (averaged over all the suppliers who supply that part).
10.For each part, find the sname 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 2 suppliers.
15.For every supplier that only supplies green parts, print the name of the supplier and the total number of parts that she supplies.
16.For every supplier that supplies a green part and a red part, print the name and price of the most expensive part that she supplies. 

Computer Engineering, Engineering

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

Have any Question?


Related Questions in Computer Engineering

1 a cpu manufacturing company knows based on the machines

1. A CPU manufacturing company knows, based on the machines working at maximum productivity, that 90% of the CPU's coming off the line meet quality standards. The quality control inspector pulls 25 CPU's off the line to ...

From the following information how would i work out the

"From the following information, how would I work out the standard error of the estimate for the regression model (in excel)? Multiple R=0.7545, Adjusted R Square=0.5077, Regression df=1, Residual df=7 SS=27.37 MS=3.91, ...

Assignment week 1 project plan drafta project plan is a

Assignment: Week 1 Project Plan Draft A project plan is a document created at the beginning of the project lifecycle that gives stakeholders and everyone else involved in a project a clear idea of what a project will ent ...

Assignmentshalene kolchek bought a great lakes spa from val

Assignment Shalene Kolchek bought a Great Lakes Spa from Val Porter, a dealer who was selling spas at the state fair. Kolchek signed an installment contract. Porter then handed her the manufacturer's paperwork and arrang ...

If there are 30 students total and 13 of them have blue

If there are 30 students total and 13 of them have blue socks and 17 have red socks. Randomly select a student from the class list. What is the probability of the student having red socks?

Tests can determine with some degree of accuracy whether a

Tests can determine, with some degree of accuracy, whether a subject indeed has the disease for which s/he is being tested. For instance, a new screening procedure for heart disease was tested on 100 patients with heart ...

Recursive algorithms help c programmingquestion create an

Recursive algorithms help C++ programming: question: Create an ADT that contains a fixed-size array that holds 20 integers (i.e., int array[20]; ) and the following member functions: A default constructor that initialize ...

Write a program that takes as input an xy center value and

Write a program that takes as input an x,y center value and radii for two circles, draws them in a turtle (Python) window, and prints whether they intersect or not. You should show intersecting circles, and show non-inte ...

About signed integer representation twos complement

About Signed Integer Representation. Two's Complement Overflow Explain how to perform the signed decimal to Hexadecimal conversion and vice versa. Show it with two examples for each.

1 what is the boolean expression for an and gate2 what is

1. What is the Boolean expression for an AND gate? 2. What is the Boolean expression for an OR gate? 3. What is the Boolean expression for a NOT gate?

  • 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