
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
20 questions
Business studies Picture based mcqs Quiz-1

Quiz
•
12th Grade
15 questions
Performance Evaluation Guidelines

Quiz
•
12th Grade
10 questions
Effective Supervisory Practices p148-149

Quiz
•
12th Grade
15 questions
Fire Officer p132

Quiz
•
12th Grade
10 questions
Incentives Overview

Quiz
•
12th Grade
16 questions
Travel and Tour

Quiz
•
12th Grade
15 questions
Fire Officer p130

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

Quiz
•
12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade