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
what is the difference difference between procedure and packages
What is sql exception?
What are types of exception?
Why is a trigger used?
What are the key differences between SQL and PL SQL?
What is pragma in pl sql?
What is #table in sql?
Can we call procedure in select statement?
What is embedded sql with example?
Is nosql relational?
How do you write a complex sql query?
Which is better cte or subquery?
how to dump a table to a file with 'mysqldump'? : Sql dba
What is cursor and why it is required?
How long does it take to learn pl sql?