QuestionQ52
VerifiedSecure, optimize, and deploy database solutionsYou have a SQL database in Microsoft Fabric that contains a table named dbo.Orders.
dbo.Ordershas a clustered index.- It contains three years of data.
- It is partitioned by a column named
OrderDateby month.
You need to remove all rows for the oldest month. The solution must minimize the impact on other queries that access the data in dbo.Orders.
Solution: Execute the following Transact-SQL statement.
DELETE FROM dbo.Orders -
WHERE OrderDate < DATEADD(month, -36, SYSUTCDATETIME());
Does this accomplish the goal?
Community Discussion