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 subset of SQL is used to limit access to a database or its data?

id188

2 / 10

Join algorithms are utilized by the database query optimizer to generate an efficient execution plan.

Identify the three standard join algorithms from the following list.

id120

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 is the output of the following SQL statement?


id112

5 / 10

During the 1970s, while at IBM, what two computer scientists developed a version of SQL (originally called SEQUEL) to manipulate and retrieve data stored in IBM’s original quasi-relational database management system, System R.

id148

6 / 10

Consider the following relation which contains customer IDs and their corresponding city.

Identify which SQL statements would return a list of cities with more than one customer.









Select all that apply.

id58

7 / 10

What is meant by OLAP in the context of data warehousing?

id53

8 / 10

True or False?

Views are often thought of as virtual tables. However, you can index a view, causing it to be materialized and storing its data physically in the database rather than re-evaluating the view definition each time it is accessed.

id218

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

Microsoft SQL Server offers the following ten table types.

Which of the following table types are schema bound objects?

Select all that apply.

id220

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

What is the correct sequence of commands to process a set of records using a cursor?

id35

2 / 10

Join algorithms are utilized by the database query optimizer to generate an efficient execution plan.

Identify the three standard join algorithms from the following list.

id120

3 / 10

Which of the following are examples of relational division?

Check all that apply.

A.  Employee Skills Matching: Suppose you have two tables, one listing employees and their skills, and another listing the skills required for a job. Relational division can be used to find employees who have all the skills required for the job.

B.  Student Course Enrollment: If you have one table of students and the courses they are enrolled in, and another table listing all the courses required for a particular degree, relational division can be used to find students who are enrolled in all the necessary courses for that degree.

C.  Product Bundles: Suppose you have a table listing all the products that customers have bought, and another table listing the products included in a specific bundle. Relational division can be used to find customers who have bought all the products in the bundle.

D.  All of these are examples that would require relational division.

id80

4 / 10

In databases, collations dictate how data is sorted and compared in a database and are defined for a particular character set.

Which of the following is incorrect about database collation?

id126

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

6 / 10

Which of the following SQL data types supports ternary logic?

id184

7 / 10

If you do not specify a mode for a stored procedure’s parameter, what is the default mode?

id171

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

9 / 10

SQL is based upon what mathematical foundations?

Select all that apply.

id154

10 / 10

Which of the following logic statements are correct?

Select all that apply.

id82

Your score is

0%