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 / kapil
It would return 4 rows
because there is also a sum of ice_cream_sales for null also
so it would return 4 rows including null with order
dependimg on the value of sum function returned .
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the maximum number of triggers, you can apply on a single table?
What is %s in sql?
How can we debug in PL/SQL?
What is left inner join in sql?
Write the command to remove all players named sachin from the players table.
Describe types of sql statements?
How do I know if I have sql express or standard?
List the different type of joins?
what tools available for managing mysql server? : Sql dba
What is sql performance tuning?
What is the unique index?
What is the purpose of the primary key?
Can you load data into multiple tables at once? : aql loader
List and explain the different types of join clauses supported in ansi-standard sql?
how to run 'mysql' commands from a batch file? : Sql dba