DDL COMMANDS
DML COMMANDS
IDENTIFY THE COMMAND
TRUE OR FALSE
BONUS ROUND
10

You are creating a brand-new database for a library system called LibraryDB.

What SQL command should you use?


CREATE DATABASE LibraryDB;

10

You want to add a new book into the Books table.

Which SQL command will you use?

INSERT

10

"I create a new database."

Who am I?

CREATE DATABASE

10

TRUNCATE TABLE removes the table structure.

FALSE

10

Arrange these commands in the correct order when creating a database.


USE

CREATE DATABASE

CREATE TABLE

INSERT

SELECT

CREATE DATABASE

USE

CREATE TABLE

INSERT

SELECT

20

You have already created LibraryDB, but MySQL doesn't know which database you want to use.

What command should you execute?

USE LibraryDB;

20

Your teacher asks you to display every book stored inside the Books table.

Which SQL command will you use?


SELECT

20

"I remove every record but keep the table."

Who am I?

TRUNCATE TABLE

20

DROP TABLE removes the structure and all data.

TRUE

20

Which command should be used first?
INSERT INTO Students...
OR
CREATE TABLE Students...

✅ CREATE TABLE

30

Inside LibraryDB, you need to create a table called Books.

Which command starts the process?

CREATE TABLE

30

The price of a book changed from ₱500 to ₱450.

Which SQL command updates the record?


UPDATE

30

"I permanently delete the entire table."

Who am I?


DROP TABLE

30

UPDATE changes existing data.


TRUE

30

Which SQL group does CREATE TABLE belong to?

A. DML

B. DDL

C. DCL

D. TCL

B. DDL

40

Your Books table is missing a new column called Author.

Which SQL command allows you to modify the table?

ALTER TABLE

40

One book has been discontinued.

You want to remove only that record.

Which SQL command should you use?

DELETE

40

"I retrieve information from a table."

Who am I?


SELECT

40

DELETE always removes every record in a table.

FALSE
It only removes every record if you omit the WHERE clause.

40

Which SQL group does INSERT belong to?

A. DDL

B. DML

C. DCL

D. TCL

B. DML

50

You no longer need the Books table.

You want to permanently remove both the table and all its records.

Which command should you use?

DROP TABLE

50

You accidentally forgot the WHERE clause when running an UPDATE statement.

What happens?

A. Only one record changes

B. The database crashes

C. Every row is updated

D. Nothing happens

C. 

Every row is updated

50

"I add a new row into a table."

Who am I?

INSERT

50

CREATE TABLE is a DML command.

FALSE
(It belongs to DDL.)

50

You are creating a Student Information System from scratch.

Place these SQL commands in the correct order:

  • CREATE DATABASE
  • USE
  • CREATE TABLE
  • INSERT
  • SELECT
  • UPDATE
  • DELETE
  • TRUNCATE
  • DROP
  • CREATE DATABASE
  • USE
  • CREATE TABLE
  • INSERT
  • SELECT
  • UPDATE
  • DELETE
  • TRUNCATE
  • DROP
M
e
n
u