Group Functions

Group Functions

University

13 Qs

quiz-placeholder

Similar activities

Quiz 9: Pointer

Quiz 9: Pointer

University

12 Qs

exception

exception

University

10 Qs

IT 321 2nd Live Quiz

IT 321 2nd Live Quiz

University

15 Qs

Mini 2 (5junio)

Mini 2 (5junio)

University

10 Qs

Execl Quiz

Execl Quiz

7th Grade - University

11 Qs

QUIZ 1 DS1E

QUIZ 1 DS1E

University

10 Qs

SQL JOINS

SQL JOINS

University

10 Qs

BD2 FINAL4

BD2 FINAL4

University

11 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?