wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SQL Fundamentals Worksheet Questions

Total questions: 25

Worksheet time: 25mins

Name
Class
Date
1.

What does SQL stand for?

a)

Structured Query Language

b)

Standard Query Language

c)

Simple Query Language

d)

Sequential Query Language

2.

Which of the following SQL command(s) retrieves information from a Database?

a)

Update

b)

Extract

c)

Select

d)

Retrieve

3.

Using which command one can delete existing data from database without deleting the table?

a)

Drop

b)

Delete

c)

Remove

d)

Collapse

4.

Which SQL command is used to modify data in a Database?

a)

Modify

b)

Change

c)

Save

d)

Update

5.

To insert new data into a database, which of the following SQL command is used?

a)

Insert

b)

Insert Into

c)

Update

d)

Add New

6.

Which command is used to eliminate a table from a database?

a)

Drop

b)

Delete

c)

Remove

d)

Eliminate

7.

Which of the following is NOT a valid keyword in SQL?

a)

SELECT

b)

DELETE

c)

WHERE

d)

INCLUDE

8.

Which of the following tasks CANNOT be accomplished using SQL?

a)

Creating and modifying database structures

b)

Writing complex algorithms for data analysis

c)

Retrieving specific data from a database

d)

Adding new data to a database

9.

Which of the following is basis for SQL?

a)

SQL Server

b)

DBMS

c)

RDBMS

d)

Oracle

10.

Which character is used to separate SQL statements in database systems?

a)

:

b)

%

c)

_

d)

;

11.

Which statement(s) are mandatory in a simple SQL SELECT statement?

a)

Select, From

b)

Select, OrderBy

c)

Select, Where

d)

Select, GroupBy

12.

Which of the following command is used to create a database in SQL?

a)

MAKE

b)

CREATE

c)

INSERT

d)

DEVELOP

13.

Which SQL keyword is used to sort the data returned by a SELECT statement?

a)

Group

b)

Order

c)

Group By

d)

Order By

14.

SELECT statement retrieves _________

a)

Records from only one table

b)

Records from one or more tables

c)

Data from only one column

d)

Data from only one row

15.

Which character in the select clause denotes ?

a)

+

b)

%

c)

*

d)

_

16.

What is the syntax for SELECT statement?

a)

SELECT table_name FROM database_name;

b)

SELECT column_list FROM table_name;

c)

SELECT row_list FROM table_name;

d)

SELECT record_list FROM table_name;

17.

Which function returns the average value of a numeric expression?

a)

Average( )

b)

Avg( )

c)

Ave( )

d)

Average Num( )

18.

Which of the following function returns the total sum of a numeric column?

a)

Add( )

b)

Addition( )

c)

Sum( )

d)

Total sum( )

19.

Which of the following terms is used to get the smallest value of the selected field?

a)

Small( )

b)

Smallest( )

c)

Min( )

d)

Minimum( )

20.

Which function is used to find out the record with maximum value among a record set?

a)

Maximum( )

b)

Max( )

c)

Large( )

d)

Largest( )

21.

UPDATE is a ________ command.

a)

Data definition language

b)

Data manipulation language

c)

Data control language

d)

Transaction control language

22.

Which of the following provides a correct syntax for UPDATE statement?

a)

Update table_name Set column1=value1, column2=value2, Where condition(s);

b)

Update table_name Alter column1=value1, column2=value2, Where condition(s);

23.

Which of the following terms represents a COLUMN of a Database table?

a)

Attribute, Field

b)

Field, Record

c)

Tuple, Record

d)

Tuple, Attribute

24.

Which of the following terms represents a ROW of a Database table?

a)

Field, Record

b)

Attribute, Field

c)

Tuple, Attribute

d)

Tuple, Record

25.

Which function is used to get the number of rows that matches specified criteria?

a)

Number( )

b)

Count( )

c)

Total( )

d)

Calculate( )