aggeregate function quiz

aggeregate function quiz

University

15 Qs

quiz-placeholder

Similar activities

@tbinh1768/TIN ĐS HK1

@tbinh1768/TIN ĐS HK1

11th Grade - University

11 Qs

Câu hỏi về SQL

Câu hỏi về SQL

11th Grade - University

12 Qs

Quiz PBD 4Nov2022

Quiz PBD 4Nov2022

University

15 Qs

DBMS Lab Quiz 1 2B3

DBMS Lab Quiz 1 2B3

University

10 Qs

DBMS_Quiz_1

DBMS_Quiz_1

University

15 Qs

DBMS-Aggregate Methods (GroupBy & Having Class)

DBMS-Aggregate Methods (GroupBy & Having Class)

University

15 Qs

SYS 1591

SYS 1591

University

10 Qs

ITPC 116 Section 6

ITPC 116 Section 6

University

10 Qs

aggeregate function quiz

aggeregate function quiz

Assessment

Quiz

Computers

University

Medium

Created by

radhika jindal

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an aggregate function in SQL?

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

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?