You are designing a SQL Server database for an order fulfillment system.
You create a table named Sales.Orders by using the following script:
Each order is tracked by using one of the following statuses:
Fulfilled
Shipped
Ordered
Received
You need to design the database to ensure that you can retrieve the status of an order on a given date. The
solution must ensure that new statuses can be added in the future.
What should you do?
More than one answer choice may achieve the goal. Select the BEST answer.
A.
Implement change data capture on the Sales.Orders table.
B.
To the Sales.Orders table, add a column named Status that will store the order status. Update the Status
column as the order status changes.
C.
Create a new table named Sales.OrderStatus that contains three columns named OrderID, StatusDate, and
Status. Insert new rows into the table as the order status changes.
D.
To the Sales.Orders table, add three columns named FulfilledDate, ShippedDate, and ReceivedDate.Update the value of each column from null to the appropriate date as the order status changes.
The correct answer is C.
“Create a new table named Sales.OrderStatus that contains three columns named OrderID, StatusDate, and
Status. Insert new rows into the table as the order status changes.”
c