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 can you not pass as an argument to a stored procedure or function?

id172

2 / 10

Which of the following best describes a domain?

id26

3 / 10

Consider the following two relations, Customers and Orders.


What is the output of the following SQL statement?


Select from the following options.


id57

4 / 10

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

id185

5 / 10

Given the following SQL statements, what type of join is being performed?

id63

6 / 10

Consider the following relations, Students and Departments, accompanied by their respective DDL creation statements.

Will the execution of the INSERT statement execute successfully?



id139

7 / 10

Given the following SQL statement that uses a CROSS JOIN, identify the correct statements from the below list.


Select all that apply.

id61

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

Consider the following relation that contains student information.

What is the highest normal form of the following relation?


id85

10 / 10

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

id158

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

Microsoft SQL Server offers the following ten table types.

Which of the following table types is suitable for passing a table to a stored procedure?

id223

2 / 10

True or False?

The datatype BIT in SQL is a true Boolean value and can only represent the values of 0 and 1.

id100

3 / 10

Edgar F. Codd’s twelve rules are a set of thirteen rules (numbered zero to twelve) proposed by Edgar F. Codd, a pioneer of the relational model for databases, designed to define what is required from a database management system in order for it to be considered relational.

What is Edgar F. Codd’s Rule 0 (known as the foundational rule)?

id146

4 / 10

While the SQL syntax is traditionally written in a specific sequence – SELECT, FROM, WHERE, GROUP BY, HAVING, and finally LIMIT – the actual processing of these clauses by the SQL engine does not follow this same sequence.

Which of the following is the correct processing order of an SQL statement?

id205

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

6 / 10

Introduced by Ronald Fagin in 1977, what normal form is concerned with a more general type of dependency known as a multivalued dependency?

id93

7 / 10

Which of the following are natural keys?

Select all that apply.

id71

8 / 10

In a data warehouse, which of the following is not a type of dimension?

id50

9 / 10

What are some of the features of common table expressions?

Select all that apply.

id76

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

Your score is

0%