You develop a Microsoft SQL Server database that contains two tables named OrdersHistorical and CompletedOrders.
Both tables have the same schema that has the following definition:
You write the following Transact-SQL statement:
You need to ensure that data that falls into the date range of the SELECT statement cannot be inserted into CompletedOrders while the INSERT statement is running. You also need to ensure that other operations are unaffected.
Which table hint should you use?
Comments