Search Header Logo

ITDB202 - SQL DDL, DML and TCL Statements

Authored by Mel PJ

Computers

12th Grade - University

17 Questions

Used 67+ times

ITDB202 - SQL DDL, DML and TCL Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following allows you to add Address column with string value up to 50 characters in your EMP table?

ALTER TABLE emp ADD address VARCHAR2(50);

ALTER TABLE emp ADD COLUMN address VARCHAR2(50);

ALTER TABLE emp ADD address VARCHAR2(30);

ALTER TABLE emp DROP COLUMN address;

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is an example of Data Manipulation Language (DML) command?

CREATE

INSERT

ALTER

DROP

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is an example of Data Definition Language (DDL) command?

INSERT

DELETE

CREATE

UPDATE

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following will display all the records in EMPLOYEES table?

SELECT salary FROM employees;

SELECT * FROM employees;

SELECT ALL FROM employees;

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which command will delete your table from the database?

DROP

DELETE

TRUNCATE

MERGE

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data type should you use for the BIRTHDAY column in STUDENTS table?

CHAR

VARCHAR2

DATE

NUMBER

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which command will execute properly?

INSERT INTO emp (101, 'Melissa', 300);

INSERT INTO emp VALUES (101, Melissa, 300);

INSERT INTO emp VALUES (101, 'Melissa', 300);

INSERT INTO emp VALUES ('101', Melissa, '300');

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?