Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How many rows will contain the output of the following query? SELECT city, SUM(amt) as Money FROM summary WHERE sname 'Motika' GROUP BY city


How many rows will contain the output of the following query? SELECT city, SUM(amt) as Money FROM summary ONUM AMT ODATE 3007 75.75 CNAME SNAME CITY 3001 18.69 3002 1900.1 3003 767.19 03-OCT-14 Hoffman Peel 3005

How many rows will contain the output of the following query? SELECT city, SUM(amt) as Money FROM summary WHERE sname 'Motika' GROUP BY city HAVING COUNT(*) >= 1; + ONUM AMT ODATE 3007 75.75 CNAME SNAME CITY 3001 18.69 3002 1900.1 3003 767.19 03-OCT-14 Hoffman Peel 3005 5160.45 03-OCT-14 Lui Serres London 3006 1098.16 03-0CT-14 Cisneros Rifkin Madrid 64-OCT-14 Grass 3006 4723 05-OCT-14 Clemens 3009 1713.23 04-OCT-14 Giovanni 3010 1309.95 06-OCT-14 Grass 3011 9891.88 06-OCT-14 Clemens 03-OCT-14 Cisneros Rifkin London 03-OCT-14 Pereira Motika London Barcelona Serres London Serres London Axelrod London Serres London Peel Barcelona View Summary

Step by Step Solution

3.42 Rating (161 Votes )

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_2

Step: 3

blur-text-image_3

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

Management And Organisational Behaviour

Authors: Laurie Mullins

7th Edition

0273688766, 978-0273688761

More Books

Students also viewed these Programming questions