Which of the following is an aggregate function in SQL?

aggeregate function quiz

Quiz
•
Computers
•
University
•
Medium
radhika jindal
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
count( )
group by
order by
where
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the SUM() function do in SQL?
Counts the number of rows
Returns the highest value in a column
Adds up the numeric values in a column
Returns the average value of a numeric column
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query will return the average salary from the employees table?
SELECT AVG(salary) FROM employees;
SELECT MEAN(salary) FROM employees;
SELECT TOTAL(salary) FROM employees;
SELECT AVERAGE(salary) FROM employees;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the COUNT(*) function do?
Counts the number of non-null values in a column
Counts the number of distinct values in a column
Counts the total number of rows in a table
Counts the number of columns in a table
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL function would you use to find the highest value in a numeric column?
Heights( )
top( )
max( )
largest( )
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you calculate the total number of distinct departments in the employees table?
SELECT COUNT(department) FROM employees;
SELECT COUNT(DISTINCT department) FROM employees;
SELECT DISTINCT COUNT(department) FROM employees;
SELECT COUNT(*) DISTINCT FROM employees;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you find the total number of unique job titles in the employees table?
SELECT DISTINCT COUNT(title) FROM employees;
SELECT COUNT(DISTINCT title) FROM employees;
SELECT COUNT(UNIQUE title) FROM employees;
SELECT COUNT(*) FROM employees GROUP BY title;
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Database Concepts Quiz

Quiz
•
University
15 questions
DDSQL2-DP8-P10

Quiz
•
University
10 questions
DBMS 1

Quiz
•
University
19 questions
SQL Quiz

Quiz
•
University
15 questions
DDSQL-DP9-P10

Quiz
•
University
19 questions
Database Management Systems

Quiz
•
University
10 questions
Lab 5 Review Quiz - Functions and Subqueries

Quiz
•
University
20 questions
Database Concepts Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade