FIT9132 PASS Week 10

FIT9132 PASS Week 10

University

7 Qs

quiz-placeholder

Similar activities

DataBackupStorageAndRestoration

DataBackupStorageAndRestoration

University

10 Qs

CS10337 - Lecture #4

CS10337 - Lecture #4

University

10 Qs

kuis database

kuis database

University

10 Qs

FUNGSI REFERENCE

FUNGSI REFERENCE

8th Grade - University

10 Qs

ExcelGraf22Jan2025

ExcelGraf22Jan2025

University

8 Qs

Informatika 2

Informatika 2

7th Grade - University

10 Qs

DBMS Q1  S2

DBMS Q1 S2

University

10 Qs

MP Pertemuan 02

MP Pertemuan 02

University

10 Qs

FIT9132 PASS Week 10

FIT9132 PASS Week 10

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Yiheng Cai

Used 6+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following returns the total number of rows in a table, including those where all columns are NULL?

COUNT(column_name)

COUNT(*)

SUM(1)

TOTAL_ROWS()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does COUNT(DISTINCT column_name) return?

Total number of rows, including NULLs

Sum of all values in the column

Number of distinct non-NULL values in the column

Number of columns in the table

Maximum value in the column

3.

DRAG AND DROP QUESTION

1 min • 1 pt

Choose the correct execution order of SQL statement clauses:
SELECT ->​ (a)   ->​ (b)   ->​ (c)   ->​ (d)   ->​ (e)  

FROM
WHERE
GROUP BY
HAVING
ORDER BY

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following statements about WHERE and HAVING are true?

WHERE filters rows before grouping.

HAVING filters groups after aggregation.

HAVING can reference aggregate functions.

WHERE can reference aggregate functions.

HAVING is always evaluated before GROUP BY.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which clause should you use to filter groups based on an aggregate condition?

WHERE

GROUP BY

HAVING

FILTER

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following are valid SQL aggregate functions?

SUM

MIN

RANDOM

AVG

MAX

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of these are valid comparison operators for use with subqueries?

=

>

IN

LIKE

ANY