Tesco DDL and DML

Tesco DDL and DML

Professional Development

7 Qs

quiz-placeholder

Similar activities

Induction Quiz

Induction Quiz

Professional Development

10 Qs

M9_Review

M9_Review

Professional Development

11 Qs

Pengenalan Google Classroom

Pengenalan Google Classroom

5th Grade - Professional Development

12 Qs

Using Power BI Desktop (Part B)

Using Power BI Desktop (Part B)

Professional Development

12 Qs

WCF-DSE-Q8

WCF-DSE-Q8

Professional Development

10 Qs

Uji Diri Workshop Penyusunan US PAK

Uji Diri Workshop Penyusunan US PAK

Professional Development

12 Qs

Model View in Powerbi

Model View in Powerbi

Professional Development

10 Qs

Repaso Base de Datos Grupo A

Repaso Base de Datos Grupo A

Professional Development

11 Qs

Tesco DDL and DML

Tesco DDL and DML

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Ivy Professional School

FREE Resource

7 questions

Show all answers

1.

OPEN ENDED QUESTION

2 mins • 1 pt

E mail

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

2 mins • 1 pt

Full Name

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the correct way to rename a table in SQL?

MODIFY TABLE old_name TO new_name;

RENAME TABLE old_name TO new_name;

ALTER TABLE old_name TO new_name;

CHANGE TABLE old_name TO new_name;

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the key difference between TRUNCATE TABLE Products; and DELETE FROM Products;?

TRUNCATE removes only some records, while DELETE removes all records.

TRUNCATE deletes all records without logging each row deletion, while DELETE logs each deletion.

DELETE removes table structure and records, while TRUNCATE keeps both

Both work the same way

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Will the following SQL query execute successfully or cause an error?
CREATE TABLE Customers ( CustomerID INT PRIMARY KEY, CustomerName VARCHAR(100));

INSERT INTO Customers (CustomerID, CustomerName) VALUES (101, 'John Doe');
INSERT INTO Customers (CustomerID, CustomerName) VALUES (101, 'John Doe');

The query will run successfully, inserting both records.

The query will fail because CustomerID is a PRIMARY KEY and must be unique.

The query will run, but only one record will be inserted automatically.

The query will throw an error because INSERT cannot be used twice on the same table.

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the correct syntax to delete a record from the Orders table where OrderID is 102?

REMOVE FROM Orders WHERE OrderID = 102;

DELETE FROM Orders WHERE OrderID = 102;

DROP Orders WHERE OrderID = 102;

ERASE FROM Orders WHERE OrderID = 102;

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which statement is true about the ALTER TABLE command?

ALTER TABLE can be used to delete records from a table.

ALTER TABLE is used to modify an existing table’s structure.

ALTER TABLE is used to delete an entire table permanently.

ALTER TABLE can rename a column but not a table.

Discover more resources for Professional Development