wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

My Sql

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Which command is used to display list of all databases.

a)

Display

b)

Display List

c)

Show Databases

d)

Show Database

2.

Delete command is DDL command.

a)

True

b)

False

3.

Which aggregate function is used to find sum of column in a table?

(a)  

4.

Which is the correct statement from the following :

Delete table book;

a)

Delete book;

b)

Delete table book;

c)

Drop table book;

d)

Drop book;

5.

Duplication of record is called___________

a)

Deficiency

b)

Redundancy

c)

Lack

d)

Addition

6.

Which of the following is not the aggregate function?

a)

avg()

b)

max()

c)

round()

d)

sum()

7.

Which command will delete all the records of table with its structure?

a)

Delete Table <Table Name>;

b)

Drop Table;

c)

Drop Table <Table Name>;

d)

Drop <Table Name>;

8.

Which clause of Alter command can change the size of the Column?

a)

ADD

b)

MODIFY

c)

CHANGE

d)

COLUMN SIZE

9.

Select max(marks), min(marks), avg(marks) from student;

Is the above query is correct?

a)

Yes

b)

We can not use three aggregate function in single query.

c)

No

10.

Which of the following is not the clause in MySQL?

a)

Group By

b)

Order By

c)

Default

d)

Having