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 on it.

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 SQL commands does not serve the purpose of data aggregation?

id200

2 / 10

Identify the index operation that matches the given descriptions.

1.  This database operation involves dropping an existing index and creating it anew, resulting in all index pages being updated and improved.

2.  This database operation rearranges the existing index pages without recreating the entire index and is best suited when there is only a moderate level of fragmentation.

id119

3 / 10

Given the following MySQL stored procedure which executes successfully, what is the output of the SELECT statement?


id170

4 / 10

Consider the following relation which contains product information.

Which candidate key best serves as the primary key for this relation?


id67

5 / 10

Which of the following normal forms are concerned with functional dependencies?

Select all that apply.

id96

6 / 10

True or False?

The following DDL statements will execute without error.


id136

7 / 10

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

id52

8 / 10

True or False?

The following two SQL statements treat NULL markers identically.


id101

9 / 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

10 / 10

Consider the following two relations, Employees and Departments.

What is the output of the following SQL statement?


Select from the following options.


id202

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

Database design involves a series of steps to create a well-structured and efficient database. What is the sequence of modeling steps involved in the database design process?

id25

2 / 10

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

id52

3 / 10

Which SQL statement is used to define a named group of related tables, views, domains and other database objects?

id187

4 / 10

Which of the following SQL data types supports ternary logic?

id184

5 / 10

Which process is used to prevent the current database operation from reading or writing a data item while that data item is being accessed by another operation?

id20

6 / 10

True or False?

When modifying a stored procedure or a function, the code must be re-executed to validate and store it in the database.

id180

7 / 10

Which of the following operations do not have corresponding SQL set operators?

Select all that apply.

id160

8 / 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

9 / 10

Which of the following terms describes a function in SQL where the return values are expected to be the same for the same input parameters, regardless of the number of times it is run?

id167

10 / 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

Your score is

0%