This document contains a quiz with 12 multiple choice questions testing database concepts. The questions cover topics such as defining database, normal forms, relationship types, DDL vs DML statements, schemas, SELECT statements, INSERT and UPDATE statements, joins, recursive common table expressions, and ROLLUP vs CUBE operations. The document provides space for answers but does not include the answer key.
1. F0004
04 Quiz 1 *Property of STI
Page 1 of 3
QUIZ
PROBLEM SET. Provide the answer for each question. (5 pts. each)
1. Define database.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
2. Differentiate the first normal form from the second normal form.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
3. Enumerate the three primary types of relationships supported by a relational database.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
4. Differentiate a DDL statement from a DML statement.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
5. Define schema.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
6. Assume that you are writing a SELECT statement that retrieves the CDTitle column and all rows
from the Inventory table. You want the column in the query results to be named CompactDisc.
Provide the SELECT statement that you will use.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
2. F0004
04 Quiz 1 *Property of STI
Page 2 of 3
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
7. Assume that you are writing a SELECT statement that retrieves the Category and Price columns
from the CompactDiscStock table. You want to group together the data first by the Category
column and then by the Price column. And then you want to filter out any groups that have a
Price value over 15.99. Provide the SELECT statement that you will use.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
8. Assume that you are creating an INSERT statement to insert data into the ArtistTypes table. The
table includes only two columns: ArtID and TypeName. You want to insert one row that includes
the ArtID value of 27 and the TypeName value of Gospel. Provide SQL statement that you will
use.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
9. Assume that you are creating an UPDATE statement to update data in the PerformingArtists
table. And you want to update the ArtID value of every row to 27. Provide SQL statement that
you will use.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
10. Differentiate an inner join from an outer join.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
11. Define recursive common table expression.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
3. F0004
04 Quiz 1 *Property of STI
Page 3 of 3
12. Differentiate a ROLLUP operation from a CUBE operation.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________