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

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

2 / 10

Which subset of SQL is used to perform operations such as data retrieval or deletion on the data contained in a database?

id192

3 / 10

What is the output of the following SQL statement?


id111

4 / 10

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


Select all that apply.

id61

5 / 10

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

Select all that apply?

id173

6 / 10

Which of the following can you not pass as an argument to a stored procedure or function?

id172

7 / 10

Consider the following relation which contains product information.

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


id67

8 / 10

Which values can we assign to the INTO clause when retrieving data with an explicit cursor?

id34

9 / 10

Which concurrency control method should be used only when conflicts between transactions rarely occur?

id16

10 / 10

Consider the following relation that contains various activities and their fees.

What is the highest normal form of the relation?


id90

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

Edgar F. Codd is known for his groundbreaking work in the field of databases and is credited with introducing the concept of a relational model.

Which of the following statements about Edgar F. Codd is incorrect?

id152

2 / 10

In Transaction Control Language, savepoints are issued for which of the following reasons?

Select all that apply.

id23

3 / 10

In a relational database, what term describes a relationship between two attributes, where the value of one attribute uniquely determines the value of another attribute?

id38

4 / 10

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

id185

5 / 10

Which of the following statements are correct regarding database tables?

Select all that apply.

id222

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

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

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

9 / 10

Which of the following is not considered a ranking function?

id175

10 / 10

True or False?

A data warehouse is typically a denormalized set of tables rather than a highly normalized set of tables.

id46

Your score is

0%