Group Functions

Group Functions

University

13 Qs

quiz-placeholder

Similar activities

DataBase 2

DataBase 2

University

10 Qs

SIG - SQL - Limbajul de interogare a bazelor de date Oracle

SIG - SQL - Limbajul de interogare a bazelor de date Oracle

University

10 Qs

Conhecimentos básicos em SQL

Conhecimentos básicos em SQL

University

10 Qs

BAnDS Tournament Round 3

BAnDS Tournament Round 3

University - Professional Development

10 Qs

Database Design & Development SQL 2

Database Design & Development SQL 2

University

12 Qs

Repaso General SQL

Repaso General SQL

University

17 Qs

Truy vấn có sử dụng hàm kết tập

Truy vấn có sử dụng hàm kết tập

University

10 Qs

Cuestionario de SQL

Cuestionario de SQL

University

14 Qs

Group Functions

Group Functions

Assessment

Quiz

Computers

University

Hard

Created by

Dr.R. Khanchana

Used 3+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a GROUP BY function?

MAX

MIN

NVL

AVG

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following functions can be used without GROUP BY clause in SELECT query? (Select all that apply)

COUNT

MAX

MIN

AVG

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A table T_COUNT has 12 number values as 1, 2, 3, 32, 1, 1, null, 24, 12, null, 32, null. Predict the output of the below query.

SELECT COUNT (*) FROM t_count;

12

6

9

Throws exception because COUNT function doesn't works with NULL values

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A table T_COUNT has 12 number values as 1, 2, 3, 32, 1, 1, null, 24, 12, null, 32, null. Predict the output of the below query.

SELECT COUNT (num) FROM t_count;

12

6

9

Throws exception because COUNT function doesn't works with NULL values

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the below query is executed in SQL* Plus?

SELECT COUNT() FROM dual;

Executes successfully and returns no output

Executes successfully and returns output as '1'

Throws exception "ORA-00909: invalid number of arguments"

Throws exception "ORA-00904: "COUNT": invalid identifier" because COUNT function doesn't works with DUAL table

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid SELECT statement?

SELECT AVG(retail-cost) FROM books GROUP BY category;
SELECT category, AVG(retail-cost) FROM books;
SELECT category, AVG(retail-cost) FROM books WHERE AVG(retail-cost) > 8.56 GROUP BY category;
SELECT category, AVG(retail-cost) Profit FROM books GROUP BY category HAVING profit > 8.56;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions is used to calculate the total value stored in a specified column?

COUNT

ADD

TOTAL

SUM

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?