You want to delete all records from a table named "Employees" where the salary is below a certain threshold. Which SQL statement should you use for this task?
- DELETE FROM Employees WHERE
- DROP TABLE Employees
- REMOVE FROM Employees WHERE
- TRUNCATE TABLE Employees
The correct SQL statement for deleting records from a table based on a condition is "DELETE FROM Employees WHERE." This statement allows you to specify a condition, such as salary being below a certain threshold, and deletes all matching records from the "Employees" table.
Loading...
Related Quiz
- What is the difference between blind SQL injection and classic SQL injection?
- You receive an alert indicating that the database server's CPU utilization has spiked to 95%. What immediate action should you take?
- What is the significance of using database testing tools for regression testing?
- To ensure database performance, best practices recommend regularly optimizing and tuning database ____________.
- In database testing, what does "ETL" stand for?