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 / tulsi

four rows will be returned displaying null as the last row

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the savepoint statement.

619


What is the difference between an inner and outer join?

552


Is pl sql a programming language?

565


Why indexing is needed?

530


How to write pl sql program in mysql command prompt?

529






Can we use distinct and group by together?

606


what is union, minus and interact commands? : Sql dba

678


how do you know the version of your mysql server? : Sql dba

515


what is difference between delete and truncate commands? : Sql dba

593


What is identity column in sql server?

549


what are the different type of sql's statements ? : Sql dba

528


What is the starting oracle error number? What is meant by forward declaration in functions?

555


What is a memo field?

539


how can we destroy the session, how can we unset the variable of a session? : Sql dba

562


Does truncate require commit?

558