wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SQL Queries 6

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

The “father” of MySQL is ______.

a)

Michael Widenius

b)

Bill Joy

c)

Bill Gates

d)

Stephanie Wall

2.

To use MySQL on your computer, you’ll need

a)

Perl, PHP or Java

b)

Some sort of client program to access the databases

c)

A Browser

d)

FTP and Telnet

3.

Which of these is not a valid name for a column

a)

Where

b)

Near

c)

Order

d)

From

4.

In a LIKE clause, you can could ask for any value ending in “ton” by writing

a)

LIKE ton$

b)

LIKE ^.*ton$

c)

LIKE %ton

d)

LIKE *ton

5.

The USE command

a)

Is a pseudonym for the SELECT command

b)

Has been deprecated and should be avoided for security reasons

c)

Should be used to choose the database you want to use once you’ve connected to MySQL

d)

Is used to load code from another file

6.

In a LIKE clause, you can ask for any 6 letter value by writing:

a)

LIKE ??????

b)

LIKE .{6}

c)

LIKE …… (that’s six dots)

d)

LIKE ______ (that’s six underscore characters)

7.

MySQL runs on which operating systems?

a)

Unix and Linux only

b)

Linux and Mac OS-X only

c)

Unix, Linux, Windows and others

d)

Any operating system at all

8.

In a LIKE clause, you can could ask for any value ending in “qpt” by writing

a)

LIKE %qpt

b)

LIKE *ton

c)

LIKE ton$

d)

LIKE ^.*ton$

9.

Which statement is used to count number of rows in table?

a)

SELECT COUNT(*) FROM table_name;

b)

SELECT COUNT ALL(*) FROM table_name;

c)

SELECT ROWS(*) FROM table_name;

d)

All the above

10.

Which clause is used to sort the result of SELECT statement?

a)

SORT BY

b)

ORDER BY

c)

ARRANGE BY

d)

None of the above