Question:medium

Which SQL Query below is correct for deleting all records from 'Products' table having product names starting with 'M'?

Show Hint

Remember:
- Use DELETE to remove records (rows) from a table.
- Use DROP to remove the entire table structure from the database.
- Use LIKE for wildcard matches, never use the IS operator with wildcards!
Updated On: Jun 11, 2026
  • DELETE FROM Products WHERE ProductName LIKE 'M%';
  • REMOVE FROM Products WHERE ProductName LIKE 'M%';
  • DROP FROM Products WHERE ProductName IS 'M%';
  • REMOVE FROM Products WHERE ProductName IS 'M%';
Show Solution

The Correct Option is A

Solution and Explanation


Step 1: Understanding the Concept:

To remove specific rows from a table based on a condition, the ‘DELETE‘ command combined with a ‘WHERE‘ clause using the ‘LIKE‘ operator is used.

Step 2: Detailed Explanation:

1. ‘DELETE FROM‘ is the correct SQL keyword to remove rows.
2. ‘REMOVE‘ is not a standard SQL command for row deletion.
3. ‘DROP‘ is used to remove an entire table or database structure, not individual records.
4. The ‘%‘ wildcard is used with ‘LIKE‘ to match any string starting with 'M'.

Step 3: Final Answer:

The correct query is (A).
Was this answer helpful?
0


Questions Asked in CUET (UG) exam