Advanced SQL Quiz

Hello everyone. Step right up and take the SQL Quiz challenge!

I have a blog post here about this quiz if you want to hear my ramblings.

Few things.

  • If you are on a PC, click the icon in the upper right to make it full-screen.
  •  Let me know if you find any bugs, misspellings, etc…
  •  I’ve tried to make this as ANSI-compliant as possible; however, I am partial to using Microsoft SQL Server in this exam.
  •  I have several hundred questions loaded into the quiz maker. Refresh your cache if you keep getting the same question set.

Take the SQL challenge!

In this quiz, you’ll encounter 10 questions selected at random.

1 / 10

Which of the following is not a use case for creating a database trigger on a table?

id181

2 / 10

Consider the following Inventory relation that contains parts and their quantity.


What is the result of the following SQL statement?


id99

3 / 10

Which of the following functions can you use with any data type?

Select all that apply.

id169

4 / 10

Which of the following is an important service provided by a database management system?

id132

5 / 10

What is the definition of a tuple in the context of database systems?

id163

6 / 10

True or False?

There are scenarios where the ORDER BY clause can be utilized in a subquery without causing an error.

id64

7 / 10

What is a junk dimension in the context of a data warehouse?

id52

8 / 10

Given the relation {A, B}, what type of dependency is the following?

  • B → B

Select all that apply.

id44

9 / 10

Which of the following statements best defines a data dictionary?

id149

10 / 10

True or False?

The minimum set of requirements for a database to be considered relational are the following.

  • Presents the data to the user as relations
  • Provide relational operators to manipulate the data in tabular form.

id156

Your score is

0%

Take the SQL challenge!

In this quiz, you’ll come across 10 randomly selected questions that don’t contain images.

If you’re using a smartphone, try this quiz if you find the images too hard to read on a smaller screen.

1 / 10

Which type of entity must reference another entity for its data to be meaningful?

id28

2 / 10

Which relational algebraic operation is used to select specific attributes from a relation?

id158

3 / 10

What term is used in database management systems to describe a contiguous set of data blocks or pages, reserved for storing a particular type of data, requested from the operating system as a unit?

id129

4 / 10

What are the three essential pieces of information required to retrieve a data value from a relational database?

id157

5 / 10

Which SQL expression goes through a set of conditions and returns a value when the first condition is met?

id185

6 / 10

Which of the following is an important service provided by a database management system?

id132

7 / 10

Which of the following ACID properties guarantees that once a transaction is committed, its changes are permanent and survive any subsequent failures, such as power outages or system crashes?

id18

8 / 10

True or False?

A data warehouse is typically a denormalized set of tables rather than a highly normalized set of tables.

id46

9 / 10

SQL is classified as a declarative programming language.

Which of the below options accurately describes a declarative programming language?

id150

10 / 10

Which subset of SQL is used to create and name database entities?

id189

Your score is

0%