Answered step by step
Verified Expert Solution
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?
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 WindowsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started