
Group Functions

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
15 questions
DBMS-Aggregate Methods (GroupBy & Having Class)

Quiz
•
University
15 questions
DBMS_Quiz_1

Quiz
•
University
10 questions
Perintah Join SQL

Quiz
•
11th Grade - University
18 questions
JavaScript Variables, Data Types, and Operators Quiz

Quiz
•
University
10 questions
PERINTAH SQL 01

Quiz
•
10th Grade - University
10 questions
SYS 1591

Quiz
•
University
15 questions
Quiiz Eva3 FBD

Quiz
•
University
10 questions
U2 DML

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade