Q. What will this query do?

Code:
DELETE FROM employees WHERE id = 1;
  • (A) Deletes all employees
  • (B) Deletes employee with ID 1
  • (C) Throws an error
  • (D) Deletes last employee
πŸ’¬ Discuss
βœ… Correct Answer: (B) Deletes employee with ID 1
Explanation: This query deletes the record from `employees` where the ID is 1.
Explanation by: Mr. Dubey
This query deletes the record from `employees` where the ID is 1.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate