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

5 Rows

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can there be more than one function with a similar name in a pl/sql block?

551


What is sql*loader?

576


How do I truncate a word?

529


differentiate between float and double. : Sql dba

563


What is a nested table in word?

534






Does oracle roll back the transaction on an error?

539


What is sqlcommand?

558


What types of commands can be executed in sql*plus?

554


How can you fetch first 5 characters of the string?

554


Which is faster truncate or drop?

564


What is nosql db?

548


What are all different types of collation sensitivity?

529


How much ram can sql express use?

515


What is indexing in sql and its types?

547


what is the bond code in materialized view?

2491