
DAY 18 - MySQL Commands: DDL, DML, TCL (Query Related)- 3rd July
Quiz
•
Professional Development
•
University
•
Medium
KVCH CORPORATE
Used 2+ times
FREE Resource
Enhance your content
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;
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
AXIE 101
Quiz
•
KG - Professional Dev...
10 questions
PKU Knowlegde Sharing IP Fabric march 3023 - Juniper MTM
Quiz
•
University
15 questions
Beyond the Arch Trivia-64803
Quiz
•
University
10 questions
Knowledge Booster
Quiz
•
KG - Professional Dev...
8 questions
Assessment in Education Quiz
Quiz
•
University
15 questions
ASSESSMENT IN LEARNING (BEED)
Quiz
•
University
15 questions
INTRO TO CLASSROOM MANAGEMENT
Quiz
•
University
6 questions
ISTE Standards-Educators Quiz
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Professional Development
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University