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

Quiz
•
Professional Development
•
University
•
Medium
KVCH CORPORATE
Used 2+ times
FREE Resource
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
Similar Resources on Wayground
12 questions
Veri tabanı yönetim sistemleri

Quiz
•
University
15 questions
C Operators

Quiz
•
University - Professi...
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
13 questions
Cassandra

Quiz
•
University
9 questions
Warm Up Exercise SED4074

Quiz
•
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
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade