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

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

id52

2 / 10

True or False?

The RETURN statement is required for both stored procedures and functions.

id178

3 / 10

True or False?

The following are all different procedural extensions offered by different database vendors.

  • T-SQL
  • PL/SQL
  • SQL/PSM
  • PL/pgSQL

id204

4 / 10

What mechanism allows database users to have controlled access to the database by utilizing virtual tables?

id212

5 / 10

Given the following description, choose which type of index best describes the following?

  • This index creates a separate structure from the actual data, containing a copy of the indexed columns along with a pointer to the corresponding data row.
  • Each table can have multiple of this type of index.
  • This index does not determine the physical order of data rows; instead, it provides a logical ordering of the indexed columns.
  • This index is stored separately from the data rows, which means they take up additional disk space.

id118

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

7 / 10

Consider the following two relations, Customers and Orders.


What is the output of the following SQL statement?


Select from the following options.


id57

8 / 10

Microsoft SQL Server offers the following ten table types.

Which of the following table types are schema bound objects?

Select all that apply.

id220

9 / 10

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

id28

10 / 10

Consider the following relation that contains manufacturing information.

What is the highest normal form of the following relation?


id87

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

True or False?

The following are all different procedural extensions offered by different database vendors.

  • T-SQL
  • PL/SQL
  • SQL/PSM
  • PL/pgSQL

id204

2 / 10

Consider the relation scheme R = {E, F, G, H, I, J, K, L, M, N} and the following set of functional dependencies.

  • {E, F} → G
  • F → {I, J}
  • {E, H} → {K, L}
  • K → M
  • L → N

What is the primary key for the relation R?

id66

3 / 10

Which of the following is a characteristic of a snowflake schema in a data warehouse?

id54

4 / 10

Which of the following are natural keys?

Select all that apply.

id71

5 / 10

What are three disadvantages of using the relational database model?

id128

6 / 10

What are the two parameter modes for stored procedures?

id174

7 / 10

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

id158

8 / 10

Which subset of SQL is used to limit access to a database or its data?

id188

9 / 10

Which of the following SQL statements belong to the category of Data Definition Language (DDL) statements?

Select all that apply.

id196

10 / 10

What ACID property guarantees that a transaction is treated as a cohesive and indivisible unit, ensuring that either all the transaction’s changes are committed, or none are?

id13

Your score is

0%