Aggregations

Aggregations

1st - 5th Grade

9 Qs

quiz-placeholder

Similar activities

OKR & KPI FY24

OKR & KPI FY24

1st Grade

9 Qs

Excel Minh Thái .-.

Excel Minh Thái .-.

1st - 3rd Grade

12 Qs

Quiz SQL Dasar

Quiz SQL Dasar

1st Grade

10 Qs

agregasi

agregasi

1st - 12th Grade

6 Qs

Laboratorio teórico 2

Laboratorio teórico 2

1st Grade

10 Qs

quiz excel

quiz excel

3rd Grade

11 Qs

My favorite Netflix shows

My favorite Netflix shows

KG - 12th Grade

11 Qs

Aggregations

Aggregations

Assessment

Quiz

Other

1st - 5th Grade

Medium

Created by

Deriv Besquare

Used 5+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following statements are valid?

Where clause and having clause will impact the result of group by in the same way

we can use multiple functions in one query using group by clause

This is how we should right query using group by in postgres:

select ...

from ...

group by ...

where ...

having ...

order by ...

FILTER is a modifier used on an aggregate function to limit the values used in an aggregation

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which ones of the following options are Aggregate functions?

COUNT

SUM

AVG

LOWER

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which clause/clauses can be used with aggregate functions?

DELETE

SELECT

HAVING

UPDATE

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a valid aggregate function?

COUNT

COMPUTE

SUM

MAX

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the right aggregate function to calculate the total value of an attribute?

Count

SUM

AVG

None

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Does the Count function work on the non-numeric data types?

Yes, it does!

No, it doesn't!

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following pairs can be used instead of AVG?

SUM, MIN

COUNT, MAX

SUM, COUNT

SUM, MAX

8.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of there aggregate functions doesn't support DISTINCT?

COUNT

SUM

AVG

MIN

9.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

what can we use if we want the SUM() function to return zero instead of NULL in case there is no matching row found?

MIN

COALESCE

MAX

COUNT