SQL: GROUP Functions

Quiz
•
Computers
•
8th Grade - Professional Development
•
Hard
Chetna Dass
Used 24+ times
FREE Resource
97 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
Which of the following SELECT query returns the department number with maximum salary compensated to an employee? (Consider the table structure as given)
SELECT department_id , max(salary ) FROM employees ;
SELECT department_id , max(salary ) FROM employees GROUP BY department_id ;
SELECT max(salary ) FROM employees GROUP BY department_id ;
SELECT max(salary ) FROM employees ;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements are true about the COUNT function?
The COUNT function counts the number of rows
The COUNT(*) function counts the number of rows with duplicates and NULL values
The COUNT(DISTINCT) function counts the number of distinct rows
COUNT(*) is equivalent to COUNT(ALL)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the appropriate data types accepted by GROUP BY functions?
Nested Tables
NUMBER
CLOB
DATE
6.
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
7.
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
Create a free account and access millions of resources
Similar Resources on Wayground
93 questions
J277-01 Parts 1.1, 1.2 & 1.6

Quiz
•
8th - 10th Grade
92 questions
Exam 1Z0-1033-23 Reviewer

Quiz
•
Professional Development
100 questions
Information Systems

Quiz
•
1st - 10th Grade
100 questions
A+ 1102 part 1

Quiz
•
12th Grade
95 questions
CIS-ITSM-2

Quiz
•
Professional Development
99 questions
N5 Database Development Set C

Quiz
•
10th Grade
92 questions
big computing quiz

Quiz
•
9th - 12th Grade
100 questions
ICT Input Output

Quiz
•
10th Grade - 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
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade