You need to design the database to ensure that you can retrieve the status of an order on a given date

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.

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.



Leave a Reply 9

Your email address will not be published. Required fields are marked *


Dominicana

Dominicana

For sure “C”

Mido

Mido

Why Create a new table this will needs more space on the HD we can only add a new column to the existing table

mk

mk

Because in question says “status of an order on a given date”, therefore, we must store one or more values. Adding new column allow us to store only one value.

Kevin

Kevin

Alter Table Sales.Orders Add [Status] varchar(10) Default ‘Received’;