Design of DB for forecasting values.

AC 41 Reputation points
2021-08-09T15:32:45.857+00:00

Hi there,

I would like to listen to your suggestions about how I can design the tables if:

  • I want to store Forecast and Actual values
  • I don't need to track who makes the changes, because it will be the application.
  • There will be data or several values for the same entity. Those records, some of them can be active and the rest will be put in quarantine and after a while, transfer to the archive.

Thank you for your answer in advance.

Regards,
Alvaro.

SQL Server | Other
{count} votes

Answer accepted by question author
  1. Seeya Xi-MSFT 16,676 Reputation points
    2021-08-10T07:34:18.227+00:00

    Hi @AC ,

    Please refer to this: https://stackoverflow.com/questions/12392042/how-can-i-display-actuals-and-forecasts-in-the-same-period-in-a-report-without-i.
    This is a similar thread.

    Best regards,
    Seeya


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Tom Phillips 17,781 Reputation points
    2021-08-09T15:50:24.81+00:00

    It depends on the design of your "actual" tables. It is pretty standard to use the same table with a "modifier" or "period" to identify the values are forecast/budget values.

    0 comments No comments

  2. AC 41 Reputation points
    2021-08-09T15:57:54.01+00:00

    It's gonna be from the scratch. I'll have a table with the details of the entity, probably I'll use Temporal tables but for Forecast and Values, don't need to track all the data.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.