Aggregations

Aggregations

1st - 5th Grade

9 Qs

quiz-placeholder

Similar activities

Counting Money

Counting Money

4th Grade

12 Qs

LOGO

LOGO

KG - 5th Grade

10 Qs

TOPIC 8 Taxation on Agriculture, Prospecting,Mining and Forest

TOPIC 8 Taxation on Agriculture, Prospecting,Mining and Forest

1st - 12th Grade

12 Qs

Sideways Stories From Wayside School - Chapters 1 - 3

Sideways Stories From Wayside School - Chapters 1 - 3

3rd Grade

9 Qs

BrainPOP Jr - Winter Holidays

BrainPOP Jr - Winter Holidays

5th Grade

10 Qs

Root Words 3rd Grade

Root Words 3rd Grade

2nd - 4th Grade

11 Qs

Softwares médicos

Softwares médicos

1st - 3rd Grade

5 Qs

Lets have fun_Chapter 3

Lets have fun_Chapter 3

3rd Grade

7 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