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

Consider the following two relations, Employees and Departments.

What is the output of the following SQL statement?


Select from the following options.


id202

2 / 10

Which are the following ways can you pass a parameter to a stored procedure or function?

Select all that apply?

id173

3 / 10

Which of the following statements are correct regarding database tables?

Select all that apply.

id222

4 / 10

Consider the use of the BETWEEN comparison operator in the SQL statements provided.


Which of the following statements are correct?

Select all that apply.

id77

5 / 10

Consider the following relations, Employees and Departments.

What is the output of the following SQL statement?


Select from the following options.


id199

6 / 10

In the context of a database management system, which term is used to describe the smallest unit of data that a database management system can read or write?

id133

7 / 10

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


What is the result of the following SQL statement?


id99

8 / 10

What affect does the COMMIT command have on a cursor?

id31

9 / 10

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

  • This type of index determines the physical order of data rows in a table.
  • Each table can have only one of this type of index.
  • The data rows in a table with this type of index are physically stored on disk.
  • The leaf nodes of this type of index contain the actual data rows.

id116

10 / 10

Which term describes the management of simultaneous transactions to prevent conflicts?

id14

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

During which phase of the database design do you determine the following constraints on table columns?

  • NOT NULL
  • UNIQUE
  • CHECK
  • PRIMARY KEY
  • FOREIGN KEY
  • DEFAULT

id29

2 / 10

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

  • This type of index determines the physical order of data rows in a table.
  • Each table can have only one of this type of index.
  • The data rows in a table with this type of index are physically stored on disk.
  • The leaf nodes of this type of index contain the actual data rows.

id116

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

4 / 10

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

Select all that apply.

id196

5 / 10

Which of the following ACID properties ensures that concurrent transactions are executed separately?

id19

6 / 10

In the context of a data warehouse, what is meant by data mining?

id49

7 / 10

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

id163

8 / 10

Which of the following best describes an entity in the context of a database?

id27

9 / 10

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

Select all that apply.

id96

10 / 10

SQL is based upon what mathematical foundations?

Select all that apply.

id154

Your score is

0%