SELECT category, type, AVG(price)
FROM products GROUP BY category, type ORDER BY 1, 2

If there are three distinct categories in the "products"
table, and each one has five different types, how many rows
are returned by the query above?

1. 1 row
2. 3 rows
3. 5 rows
4. 8 rows
5. 15 rows

Answer Posted / vijay

15 rows

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3111


Why do we need cursors in pl sql?

523


Why functions are used in sql?

515


What is rowid in sql?

512


How do I run sql profiler?

588






What is group by in sql?

550


How do I edit a stored procedure?

558


what is the difference difference between procedure and packages

9227


What are the topics in pl sql?

526


What is sql and db2?

538


What is materialized view in sql?

469


Why should I use postgresql?

566


How do I filter in sql profiler?

538


what is a unique key ? : Sql dba

547


Is sql harder than python?

612