Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Mysql what will the following querries print? Consider tables, of a Supplier-Parts DB, shown in Figure 2. Names of tables, cohumns and identification of primary

Mysql

what will the following querries print?

image text in transcribedimage text in transcribed

Consider tables, of a Supplier-Parts DB, shown in Figure 2. Names of tables, cohumns and identification of primary and foreign keys are shown. Questions in this part ask you to show what would be displayed by the following SQL queries should they be executed against the tables having content (tuplesrows) shown in Figure 2. In each answer to a question, do not forget to display column headings in addition to the tuplesrows that would be shown. Note for those who are familiar with the SAFE mode- assume that the SAFE mode is turned off (although it should not matter) If you feel that there is an error in the statement, e.g., instead of FROM, it is spelled "FORM", please make and note a reasonable assumption (e.g, I assume that FORM" should have been FROM) and proceed Also, consider both single or double quotes to be correct for string literals. SELECT FROM GROUP BY ORDER BY sNo, SUM(qty) sp sNo sNo DESC 2. SELECT FROM GROUP BY ORDER BY pNo, COUNT(pNo), SUM(ty, MIN(ty), AVG(qty), MAX(qty) sp JOIN p USING (pNo) pNo pNo ASC; SELECT FROM WHERE GROUP BY ORDER BY pNo, COUNT(pNo). SUM(ty). MIN(gty). AVGty). MAX(gty) sp JOIN p USING (pNo) JOIN s USING (sNo) sCity-London AND pColor-Red' AND qty 50 pNo SUM(gty Activate Windows Go to PC settings to activate Windows

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago

Question

Discuss about training and development in India?

Answered: 1 week ago

Question

Explain the various techniques of training and development.

Answered: 1 week ago