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

Is sql sequential or random?

534


what is “go” in t-sql? : Transact sql

596


What is trigger explain with example?

548


What does select count (*) mean in sql?

544


How do I count duplicates in sql?

542






What are the types of join in sql?

515


What are the disadvantages of not performing database normalization?

591


What are different types of sql commands?

506


What is sql profiling in oracle?

543


What is not equal in sql?

508


Mention what is the use of function "module procedure" in pl/sql?

559


How do I run a sql query?

528


how to shutdown mysql server? : Sql dba

563


Can unique keys be null?

484


Why do we need databases?

565