Basic MySQL Query Questions

Basic MySQL Query Questions

12th Grade

15 Qs

quiz-placeholder

Similar activities

Grammar Quiz

Grammar Quiz

9th - 12th Grade

10 Qs

QUIZ PKWH

QUIZ PKWH

12th Grade - University

15 Qs

Paghahanda ng mga Kagamitang Panturo

Paghahanda ng mga Kagamitang Panturo

12th Grade

15 Qs

types of cost

types of cost

12th Grade

20 Qs

The Real Numbers & Properties Quiz

The Real Numbers & Properties Quiz

9th - 12th Grade

11 Qs

The Hobbit

The Hobbit

9th - 12th Grade

10 Qs

Kuis Akun Belajar ID dan Canva

Kuis Akun Belajar ID dan Canva

12th Grade

20 Qs

KD 3.7 Song Lyrics

KD 3.7 Song Lyrics

12th Grade

10 Qs

Basic MySQL Query Questions

Basic MySQL Query Questions

Assessment

Quiz

Others

12th Grade

Practice Problem

Hard

Created by

Alfarisi Grita

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The SQL command to change the position of an employee with id_employee = 4 to 'Supervisor' is:

MODIFY employee SET position = 'Supervisor' WHERE id_employee = 4;

CHANGE employee SET position = 'Supervisor' WHERE id_employee = 4;

UPDATE employee SET position = 'Supervisor' WHERE id_employee = 4;

ALTER employee SET position = 'Supervisor' WHERE id_employee = 4;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to increase the salary of all employees by 10%?

UPDATE employee SET salary = salary + (salary * 0.1);

MODIFY employee SET salary = salary + 10%;

ALTER employee SET salary = salary * 1.1;

CHANGE employee SET salary = salary + 0.1;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The command to update the department to 'HRD' for employees who have a salary greater than 7 million is:

UPDATE employee SET department = 'HRD' WHERE salary > 7000000;

MODIFY employee SET department = 'HRD' WHERE salary > 7000000;

CHANGE employee SET department = 'HRD' WHERE salary > 7000000;

ALTER employee SET department = 'HRD' WHERE salary > 7000000;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The SQL command to delete an employee with id_employee = 3 is:

REMOVE FROM employee WHERE id_employee = 3;

DELETE FROM employee WHERE id_employee = 3;

DROP employee WHERE id_employee = 3;

CLEAR FROM employee WHERE id_employee = 3;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to delete all employees who have a salary less than 4 million?

DELETE FROM employee WHERE salary < 4000000;

REMOVE FROM employee WHERE salary < 4000000;

DROP FROM employee WHERE salary < 4000000;

CLEAR FROM employee WHERE salary < 4000000;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The SQL command to delete the entire employee table from the database is:

DELETE TABLE employee;

DROP TABLE employee;

REMOVE TABLE employee;

CLEAR TABLE employee;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if we run DROP TABLE employee?

Deletes all data in the table but the table structure remains.

Deletes the entire table along with its structure from the database.

Deletes only some columns from the table.

Deletes a temporary table, but it can be restored with ROLLBACK.

Access all questions and much more by creating a free account

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

Already have an account?