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

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

University

10 Qs

quiz-placeholder

Similar activities

PKU Knowlegde Sharing IP Fabric march 3023 - Juniper MTM

PKU Knowlegde Sharing IP Fabric march 3023 - Juniper MTM

University

10 Qs

Pengembangan Digital Story Telling

Pengembangan Digital Story Telling

University

10 Qs

Cuestionario de SQL

Cuestionario de SQL

University

14 Qs

Pengetahuan umum ttg GURU

Pengetahuan umum ttg GURU

University - Professional Development

8 Qs

Meet & Greet BEC

Meet & Greet BEC

University

10 Qs

Sharing My BCA

Sharing My BCA

University

10 Qs

AXIE 101

AXIE 101

KG - Professional Development

10 Qs

TECHNIQUES, METHODS, AND APPROACHES IN TEACHING

TECHNIQUES, METHODS, AND APPROACHES IN TEACHING

University

10 Qs

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

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

Assessment

Quiz

Professional Development

University

Medium

Created by

KVCH CORPORATE

Used 2+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?