
DAY 18 - MySQL Commands: DDL, DML, TCL (Query Related)- 3rd July
Authored by KVCH CORPORATE
Professional Development
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Which query creates a new table named 'Students' with columns 'id', 'name' & 'age' ?
CREATE TABLE students (id INT, name
VARCHAR(100), age INT);
NEW TABLE students (id INT, name VARCHAR(100),
age INT);
MAKE TABLE students (id INT, name
VARCHAR(100), age INT);
BUILD TABLE students (id INT, name
VARCHAR(100), age INT);
2.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Which query inserts a new record into the 'students' table
with 'id' as 1, 'name' as 'John' and 'age' as 20?
INSERT INTO students VALUES (1, 'John' , 20);
ADD INTO students (1, 'John' , 20);
NEW ENTRY students VALUES (1, 'John' , 20);
INSERT VALUES INTO students (1, 'John' , 20);
3.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Which query updates the 'age' of the student with 'id' 1 to
21 in the 'students' table?
UPDATE students SET age = 21 WHERE id = 1;
MODIFY students SET age = 21 WHERE id = 1;
CHANGE students SET age = 21 WHERE id = 1;
ALTER students SET age = 21 WHERE id = 1;
4.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Which query deletes the student record with 'id' 1 from
the 'students' table?
REMOVE FROM students WHERE id = 1;
DELETE FROM students WHERE id = 1;
ERASE FROM students WHERE id = 1;
DROP FROM students WHERE id = 1;
5.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Which query retrieves all records from the 'students'
table?
GET * FROM students;
FETCH * FROM students;
SELECT * FROM students;
RETRIEVE * FROM students;
6.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Which query adds a new column 'email' to the 'students'
table?
ADD COLUMN email TO students VARCHAR(100);
ALTER TABLE students ADD COLUMN email
VARCHAR(100);
UPDATE TABLE students ADD email
VARCHAR(100);
MODIFY TABLE students ADD email
VARCHAR(100);
7.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Which query renames the 'students' table to 'pupils' ?
RENAME TABLE students TO pupils;
ALTER TABLE students RENAME TO pupils;
UPDATE TABLE students RENAME TO pupils;
MODIFY TABLE students TO pupils;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?