wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Query

Total questions: 16

Worksheet time: 5mins

Name
Class
Date
1.

Which command is used to change the data in a table?

a)

update

b)

drop

c)

grant

2.

which clause will help you to match pattern in select command?

(a)  

3.

which of the following are Aggregate functions?

a)

date()

b)

sum()

c)

max()

4.

_____ text function is to remove characters from a string.

a)

remove()

b)

trim()

c)

instr()

5.

monthname(2020/04/07) will return the value....

a)

4

b)

7

c)

April

6.

Find the correct format...

a)

select * from class order by name desc;

b)

select * from class name order by desc;

c)

select * from class order by desc name;

7.

Which text function will return the text in upper case?

(a)  

8.

select RIGHT("Informatics Practices",5);

will return ______

a)

secit

b)

scita

c)

tices

9.

pick one or more functions that return a sub-string...

a)

middle()

b)

substr()

c)

substring()

10.

select INSTR("stay home, stay safe","sta") will return the position ......

a)

0

b)

1

c)

11

11.

Now() returns ....

a)

current date

b)

current date and time

c)

current time

12.

Pick the date format MySQL uses...

a)

DD-MM-YYYY

b)

YY-MM-DD

c)

YYYY-MM-DD

13.

Which all of the following are the math functions in SQL?

a)

mod()

b)

sum()

c)

round()

d)

square()

14.

which function can return the length of a string in SQL?

a)

len(str)

b)

length(str)

c)

str.len()

15.

count() is a _______ function.

a)

math function

b)

date function

c)

text function

d)

aggregate function

16.

The quiz helped me to...

a)

improve my skills

b)

find my weak area

c)

have fun

d)

helped me to learn