
Tesco DDL and DML

Quiz
•
Professional Development
•
Professional Development
•
Hard

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.
Similar Resources on Wayground
10 questions
THURSDAY TRVIA

Quiz
•
Professional Development
11 questions
Nodejs: Express

Quiz
•
Professional Development
11 questions
Onboarding - Day 4

Quiz
•
Professional Development
10 questions
SheerID DR Quiz 23/07/2022

Quiz
•
Professional Development
10 questions
Games seru

Quiz
•
Professional Development
10 questions
Sharing Moment Frontliner BNI KC Musi Palembang

Quiz
•
Professional Development
10 questions
Nodejs: Rate Limiting and File Upload

Quiz
•
Professional Development
10 questions
SQL Quiz-2

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade