
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
10 questions
PDS - 04225 Lists, Stacks and Queues - Chapter 5

Quiz
•
University
13 questions
Modèles dimensionnels

Quiz
•
University
12 questions
Veri tabanı yönetim sistemleri

Quiz
•
University
15 questions
Bootcamp Day 3 - Java Array

Quiz
•
University
18 questions
SQL

Quiz
•
University
16 questions
Preguntas sobre SQL

Quiz
•
University
18 questions
Lenguaje de Definición de Datos

Quiz
•
University
10 questions
DS UNIT-2 TEST-1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University