wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CS10337 - Lecture #4

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Which clause removes duplicate rows from a result set?

a)

WHERE

b)

UNIQUE

c)

DISTINCT

d)

. GROUP BY

2.

Which operator is used to search for a pattern in text columns?

a)

IN

b)

LIKE

c)

BETWEEN

d)

MATCH

3.

Which word is missing from the following SQL statement?


Select * table_name

a)

With

b)

Where

c)

From

d)

And

4.

Which character returns all the data found in a table?

a)

%

b)

#

c)

*

d)

/

5.

If you were wanting to filter data, which clause would you use?

a)

Where

b)

Order by

c)

From

d)

Select

6.

Which join returns only rows with matching values in both tables?

a)

LEFT JOIN

b)

RIGHT JOIN

c)

INNER JOIN

d)

CROSS JOIN

7.

A LEFT JOIN returns:

a)

All rows from the right table only

b)

nly rows with matches in both tables

c)

All rows from the left table and matches from the right

d)

A Cartesian product of both tables

8.

Which keyword can be used instead of ON when both tables share the same column name?

a)

USING

b)

NATURAL

c)

WHERE

d)

MATCHING

9.

Which type of join returns every possible combination of rows from two tables?

a)

FULL OUTER JOIN

b)

CROSS JOIN

c)

NATURAL JOIN

d)

RIGHT JOIN

10.

A NATURAL JOIN automatically:

a)

Uses all columns with the same name in both tables

b)

Requires you to specify join columns explicitly

c)

Returns unmatched rows as NULLs

d)

Performs a union instead of a join