Search Header Logo

Advanced SQL Quiz

Authored by MARY BALINGBING

Other

12th Grade

Used 4+ times

Advanced SQL Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

47 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `IS NULL` operator do in SQL?

Checks if a value is not NULL.

Checks if a value is NULL.

Assigns a NULL value to a column.

Removes NULL values from a result set.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In SQL, what is a foreign key?

A key that uniquely identifies each row within its own table.

A key used to link two tables together.

A key that can only contain unique values.

A key used to speed up searches.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL keyword is used to fetch the current date and time?

CURRENT_DATE()

GETDATE()

NOW()

TODAY()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `AND` operator do in SQL?

Combines multiple columns.

Combines multiple conditions.

Sorts data in ascending order.

Filters data.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL function is used to count the number of rows in a table?

COUNT()

SUM()

TOTAL()

CALCULATE()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In SQL, what is the difference between `INNER JOIN` and `OUTER JOIN`?

`INNER JOIN` selects matching rows; `OUTER JOIN` selects all rows with matches.

`INNER JOIN` selects all rows; `OUTER JOIN` selects matching rows only.

`INNER JOIN` selects rows with matches in both tables; `OUTER JOIN` includes non-matching rows.

`INNER JOIN` selects rows with NULL values; `OUTER JOIN` excludes NULL values.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the SQL function that returns the current date and time.

NOW()

DATE()

TIME()

CURRENT()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?