You are designing a SQL Server database for an order fulfillment system.
You create a table named Sales.Orders by using the following script:
CREATE TABLE Sales.Orders
(
OrderID int IDENTITY (1,1) NOT NULL PRIMARY KEY,
OrderDate date NOT NULL,
CustomerID int NOT NULL
);
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.
You need to design the database to ensure that that you can retrieve the following information:
✑ The current status of an order
✑ The previous status of an order.
✑ The date when the status changed.
The solution must minimize storage.
What should you do? More than one answer choice may achieve the goal. Select the BEST answer.
Selecione uma das seguintes: