SELECT flavor, SUM (ice_cream_sales) FROM sales_detail
GROUP BY flavor ORDER BY 2 DESC
If the "sales_detail" table contains ten records with
different values in the flavor column (two "vanilla,"
three "chocolate," four "strawberry," and one NULL), how
many rows are returned by the sample code above?
1. 0 rows
2. 1 row
3. 3 rows
4. 4 rows
5. 10 rows
Answer Posted / gvmahesh
4 rows
1.vanilla
2.chocolate
3.strawberry
4.null
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How long will it take to learn pl sql?
Is hadoop a nosql?
What is exception? What are the types of exceptions?
What is difference between inner join and cross join?
what is index? : Sql dba
What are the events on which a database trigger can be based?
How to place comments in pl/sql?
What are the advantages of indexing?
how are mysql timestamps seen to a user? : Sql dba
How many sectors are in a partition?
What is the basic form of sql query?
Explain the working of primary key?
What is sql performance tuning?
What is time based sql injection?
What are the main features of cursor?