wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Multipletables, functions, sub-queries

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Which SQL function is used to find the average value of any column?

a)

Mean()

b)

Avg()

c)

Average()

d)

Sum()

2.

Query to delete all record of table without deleting the table:

a)

DELETE TABLE TABLE_NAME

b)

DELETE FROM TABLE_NAME

c)

DROP TABLE TABLE_NAME

d)

DELETE TABLE FROM TABLE_NAME

3.

Which function will be used to find largest value from the column?

a)

max()

b)

large()

c)

least()

d)

all

4.

Fill in the blank:

___________________ this clause is used to apply condition on all the rows of table.

a)

Where

b)

Having

c)

Order By

d)

Sort By

5.

Use figure for data.

table name = order

What will be the output of following query:

select * from order where oederID = 10248;

a)

all data

b)

only one row which has orderID = 10248

c)

it will return only 10248

d)

error

6.

Which clause is used when we want to use aggregate functions in conditions?

a)

Where

b)

Group By

c)

Having

d)

Both 2 and 3

7.

Which function has been used for convert your letter into uppercase?

a)

Upercase()

b)

Uconvert()

c)

Ucase()

d)

Uletter

8.

True / False : Select * from OrderDetails where Quantity <  AVG(Quantity);

a)

True

b)

False

9.

Primary key must consist unique values where foreign key must includes different values.

a)

True

b)

False

10.

Which function is useful to find year from the given date?

a)

Ydate()

b)

Date()

c)

Day()

d)

Year()