wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL

Total questions: 23

Worksheet time: 14mins

Name
Class
Date
1.

1.Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?

a)

a) Data Definition Language(DDL)

b)

b) Data Manipulation Language(DML)

c)

c) DDL and DML

d)

d) None of the Mentioned

2.

3. A command that lets you change one or more fields in a record is

a)

a) Insert

b)

b) Modify

c)

c) Look-up

d)

d) All of the Mentioned

3.

4. Which of the SQL statements is correct?

a)

a) SELECT Username AND Password FROM Users

b)

b) SELECT Username, Password FROM Users

c)

c) SELECT Username, Password WHERE Username = ‘user1’

d)

d) None of the Mentioned

4.
One specific piece of information about a person or thing is called:
a)
Field
b)
File
c)
Record
d)
Table
5.

A scout company have a database with records of all the scouts. They want to create a list of all scouts who are under 15 and their achievements. What would they use?

a)

Report

b)

Form

c)

Query

d)

Sort

6.

The command to remove rows from a table ‘CUSTOMER’ is __________________

a)

DROP FROM CUSTOMER

b)

UPDATE FROM CUSTOMER

c)

REMOVE FROM CUSTOMER

d)

DELETE FROM CUSTOMER WHERE

7.

SQL query to find all the cities whose humidity is 95.

a)

SELECT city WHERE humidity = 95

b)

SELECT city FROM weather WHERE humidity = 95

c)

SELECT humidity = 89 FROM weather

d)

SELECT city FROM weather

8.

What does SQL stand for?

a)

Standard Query Language

b)

Sequential Query Language

c)

Structured Question Language

d)

Structured Query Language

9.

Match the following SQL term with a description - FROM

a)

The criteria which must be met

b)

The fields to display

c)

The field and order used to sort the results

d)

The table used in the query

10.

Match the following SQL term with a description - SELECT

a)

The fields to display

b)

The table used in the query

c)

The criteria which must be met

d)

The field and order used to sort the results

11.

Match the following SQL term with a description - WHERE

a)

The table used in the query

b)

The fields to display

c)

The field and order used to sort the results

d)

The criteria which must be set

12.

What is a field?

a)

A collection of information

b)

A single item of information

c)

A list of information

d)

A group of records

13.

Which of the following is not a database data type?

a)

text

b)

number

c)

array

d)

date

14.

Which statement is used to extract data from a database?

a)

Extract

b)

Get

c)

Open

d)

Select

15.

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

a)

Where

b)

Order by

c)

From

d)

Select

16.

Which word is missing from the following SQL statement?


Select * table_name

a)

With

b)

Where

c)

From

d)

And

17.

How do we select all rows for the "Designer" table?

a)

SELECT * FROM Designer

b)

SELECT [All] FROM Designer

c)

SELECT Designer.*

d)

SELECT FROM Designer

18.

Which query would return only the fields DesignerID and Designer?

a)

SELECT * FROM Designers

b)

SELECT DesignerID, Name FROM Designers

c)

SELECT DesignerID AND Designer FROM Designers

d)

SELECT DesignerID, Designer FROM Designers

19.

When examining a row in a table, we refer to it as a...

a)

row number

b)

result number

c)

record

d)

result

20.

When examining a column in a table, we refer to it as a...

a)

field name

b)

folder name

c)

column number

d)

table name

21.

When defining a table, each field name has both a ...

a)

table name and a database

b)

command and an argument

c)

goal and a purpose

d)

name and a data type

22.

varchar is better than varchar2

a)

yes

b)

no

23.

Create a table of your own choice, demonstrate varchar, char, number, varchar2 data type.

4 lines