
Basic MySQL Query Questions
Quiz
•
Others
•
12th Grade
•
Practice Problem
•
Hard
Alfarisi Grita
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ART AND DESIGN
Quiz
•
9th - 12th Grade
10 questions
RiceGlow Quiz Time !
Quiz
•
9th - 12th Grade
15 questions
Foundation of International Business (CA 2)
Quiz
•
12th Grade
16 questions
X PH 1
Quiz
•
9th - 12th Grade
20 questions
4th grade English
Quiz
•
4th Grade - University
20 questions
vocabulary
Quiz
•
9th - 12th Grade
20 questions
5555
Quiz
•
5th Grade - University
10 questions
Class XII Quiz on recruitment
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Others
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade
