QuestionQ51
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: Determine the partition number for the oldest month, and then execute the following Transact-SQL statement.
TRUNCATE TABLE dbo.Orders
WITH (PARTITIONS (partition number));
Does this achieve the goal?
Community Discussion