wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to MySQL

Total questions: 15

Worksheet time: 10mins

Name
Class
Date
1.

What is the full form of SQL

(a)  

2.

Identify the data type of data 78.3

a)

int

b)

float

c)

char

d)

varchar

3.

To store a name the data type is given as char(10). The name entered is Diya. How many spaces will be used to store the name

a)

4

b)

8

c)

10

4.

Which format is correct for giving a date in MySQL

a)

DD-MM-YYYY

b)

DD-MM

c)

YYYY-DD-MM

d)

YYYY-MM-DD

5.

Which is not a DDL command

a)

Create

b)

Alter

c)

Delete

d)

Drop

6.

Which command is used to remove entire data from a table

a)

delete

b)

drop

7.

DML stands for

(a)  

8.

write the command to open the database 'factory'

(a)  

9.

Write the command to view databases in a system

(a)  

10.

A table has 3 columns. patientno, name, department. I need to insert only patientno and name. Which command is true

a)

insert into patient values(101,'Namitha')

b)

insert into patient(patientno,name) values(101,'Namitha')

c)

insert into patient(patientno,name) = (101,'Namitha')

11.

Which of the following can add a row to a table?

a)

Add

b)

Insert

c)

Update

d)

Alter

12.

SQL is not case sensitive. SELECT is the same as select.

a)

TRUE

b)

FALSE

13.

The SQL statement that queries or reads data from a table is __________ .

a)

USE

b)

SELECT

c)

READ

d)

QUERY

14.

SQL can be used to:

a)

Create database structures only.

b)

Query database data only.

c)

Modify database data only.

d)

All of the above can be done by SQL.

15.

Select the data types which must be enclosed in quotes.

a)

int

b)

float

c)

varchar

d)

date