Q1
What is the difference between DELETE and TRUNCATE in SQL?
mediumCorrect Answer: DELETE removes rows one at a time and can be rolled back, while TRUNCATE removes all rows at once and is generally faster
Explanation:
DELETE is a logged, row by row operation that supports a WHERE clause and can be undone within a transaction, while TRUNCATE deallocates the data pages directly and typically cannot target specific rows.