QuestionQ103

VerifiedProductionizing Data Pipelines

Which of the following code blocks will remove the rows where the value in column age is greater than 25 from the existing Delta table my_table and save the updated table?

Explanation

The DELETE statement is the correct SQL command to remove rows from a Delta table based on a condition. DELETE FROM my_table WHERE age > 25 removes all rows where age exceeds 25. The SELECT, UPDATE, and invalid syntax options do not accomplish row deletion.

Community Discussion

No comments yet. Be the first to start the discussion!