
Basic MySQL Query Questions

Quiz
•
Others
•
12th Grade
•
Hard
Alfarisi Grita
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Macroenvironment Analysis Quiz

Quiz
•
12th Grade
10 questions
sigma

Quiz
•
1st Grade - University
10 questions
Fire Officer p326

Quiz
•
12th Grade
15 questions
Fire Officer p167

Quiz
•
12th Grade
15 questions
Seminario Biología #3

Quiz
•
9th - 12th Grade
15 questions
Fire officer p134

Quiz
•
12th Grade
19 questions
Telestaff Staffing Payroll Procedures

Quiz
•
12th Grade
15 questions
Recruitment Methods Quiz 15 q

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade