wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SQL Quiz

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Primary Keys

a)

almost like an SS number (unique indentifier column ) for rows in a table; define them

b)

ignored in SQL

c)

use for future reference to avoid confusion

d)

used for queries within a specific range

2.

AND Operator

a)

conditional that needs to be met by all terms

b)

converts a string to uppercase

c)

explicitly group related operators with parenthesis

d)

used for rows in tables that may not be related

3.

LEFT JOIN

a)

deletes all rows from a table

b)

column rows NULL values are ignored by the min function

c)

can be turned into a RIGHT JOIN if you switch the order of the "FROM" and "WHERE" clause.

d)

Used for adding new info to a database , make sure to put column names with values.

4.

TRUNCATE TABLE

a)

Copy contents from one table into a brand new table

b)

deletes all rows from a table

c)

Allows for quick imports of data instead of one at a time

d)

use CREATE VIEW to make a virtual table

5.

EXTRACT ()

a)

temporary name given to Table names

b)

returns a column's lowest value

c)

Used to extract part of a date with year

d)

column rows NULL values are ignored by the min function

6.

UNION

a)

rows from first table * rows from second table

b)

used to select multiple specific WHERE clauses, needs to have same columns, expressions or aggregate functions, and compatible (removes duplicate rows)unless you use ______ ALL

c)

name of table + list of changes to be made

d)

Sorts the data and then separates the data accordingly (by the group identifier)

7.

Subqueries

a)

Copy contents from one table into a brand new table

b)

conditional that needs to be met by all terms

c)

more powerful way to write queries (multiple for one combo); make sure to indent and color code each section

d)

returns the string's soundex value (four character code that is based on how the string sounds when spoken in English