SQL Functions

SQL Functions

Professional Development

10 Qs

quiz-placeholder

Similar activities

Cell Formatting Quiz

Cell Formatting Quiz

Professional Development

11 Qs

Microsoft Excel Quiz on Insert Tab

Microsoft Excel Quiz on Insert Tab

Professional Development

10 Qs

Pivot Table ง่ายๆ คุณเองก็ทำได้

Pivot Table ง่ายๆ คุณเองก็ทำได้

Professional Development

10 Qs

Power BI - Game 2

Power BI - Game 2

Professional Development

10 Qs

Aggregation, Date & Time Functions Quiz

Aggregation, Date & Time Functions Quiz

Professional Development

15 Qs

BAnDS Tournament Round 3

BAnDS Tournament Round 3

University - Professional Development

10 Qs

Power BI 02 - Connecting & Shaping Data

Power BI 02 - Connecting & Shaping Data

Professional Development

9 Qs

SQL Functions

SQL Functions

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Suheba Mubashir

Used 17+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The SQL statement to count distinct rows from a column is,

select COUNT DISTINCT columnname AS total_rows from tablename;

select (COUNT DISTINCT columnname) AS total_rows from tablename;

select DISTINCT columnname AS total_rows from tablename;

select COUNT (DISTINCT) AS total_rows from tablename;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The COUNT() function also counts the NULL values.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The SUM() function returns - - -

some random values from the given column

the total number of columns in the database

the total number of tables in the given databases

the total sum of a given numeric column

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a column named "age", containing values 4, 5, 6, the SQL statement "SELECT SUM(age) FROM students;" will return,

3

15

0

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The MIN() function returns - - - in the given column.

the largest value

the last value

the total sum value

the smallest value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The MAX() function returns - - - in the given column.

the largest value

the last value

the total sum value

the smallest value

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The average value of the given numeric column is calculated by using - - - function.

GETAVG()

FINDAVG()

AVG()

AVGVALUE()

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?