Which query creates a new table named 'Students' with columns 'id', 'name' & 'age' ?

DAY 18 - MySQL Commands: DDL, DML, TCL (Query Related)- 3rd July

Quiz
•
KVCH CORPORATE
•
Professional Development
•
University
•
2 plays
•
Medium
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
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;
Explore all questions with a free account
Similar Resources on Quizizz
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
10 questions
Classroom Policy

Quiz
•
University
13 questions
Cassandra

Quiz
•
University
8 questions
Science and Engineering Practices

Quiz
•
KG - University
11 questions
Google Cloud - Armazenamento

Quiz
•
University
15 questions
Android Studio 2

Quiz
•
1st Grade - Professio...
10 questions
DAY 22 MySQL: Constraints, Normalization (9th JULY 24)

Quiz
•
University
15 questions
C Operators

Quiz
•
University - Professi...
Popular Resources on Quizizz
17 questions
CAASPP Math Practice 3rd

Quiz
•
3rd Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
13 questions
Cinco de mayo

Interactive video
•
6th - 8th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
10 questions
4th Grade Math CAASPP (part 1)

Quiz
•
4th Grade
45 questions
5th Grade CAASPP Math Review

Quiz
•
5th Grade
Discover more resources for Professional Development
15 questions
Disney Trivia

Quiz
•
University
44 questions
APES Exam Review 2017

Quiz
•
11th Grade - University
22 questions
TSIA2 Math - TSI MATH 2.0 Review 1 (950ish)

Quiz
•
6th Grade - University
25 questions
APUSH Decades Review

Quiz
•
9th Grade - University
12 questions
Scientific Notation

Quiz
•
University
96 questions
World History 1 Sol Review

Quiz
•
9th Grade - University
20 questions
Unit Circle & Trig

Quiz
•
10th Grade - University
20 questions
Preterito vs. Imperfecto

Quiz
•
KG - University