Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8768333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:02:28+00:00 2026-06-13T17:02:28+00:00

I need to develop a web app that allows companies to forecast financials. the

  • 0

I need to develop a web app that allows companies to forecast financials.

the app has different screens, one for defining employee salaries, another for sales projections etc..
basically turn an excel financial forecast model into an app.

question is, what would be the best way to design the database, so that financial reports (e.g. a profit and loss statement or balance sheet) could be quickly generated?

  • assuming the forecast period is for 5 years, would you have a table
    with 5 years*12 months = 60 fields per each row? is that performant
    enough?
  • would you use DB triggers to recalculate salary expenses whenever a single employee data is changed?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:02:29+00:00Added an answer on June 13, 2026 at 5:02 pm

    I’d think it would be better to store each month’s forecast in its own row in a table that looks like this

    month   forecast
    -----   --------
        1      30000
        2      31000
        3      28000
       ...       ...
        60     52000
    

    Then you can use the aggregate functions to calculate forecast reports, discounted cash flow etc. ( Like if you want the un-discounted total for just 4 years):
    SELECT SUM(forecast) from FORECASTS where month=>1 and month<=48

    For salary expenses, I would think that having a view that does calculations on the fly (or if you DB engine supports “materialized views” should have sufficient performance unless we’re talking some giant number of employees or really slow DB.

    Maybe have a salary history table, that trigger populates when employee data changes/payroll runs

    employeeId    month   Salary
    ----------    -----   ------
             1        1     4000
             2        1     3000
             3        1     5000
             1        2     4100
             2        2     3100
             3        2     4800
           ...      ...      ...
    

    Then again, you can do SUM or other aggregate function to get to the reported data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to develop a basic web app very quickly (1 week) for a
I'm using VS2010,C# to develop my ASP.NET web app, sometimes I need to declare
I need to find or develop an app that will load in a pdf
We are about to develop a mini-ERP web-app. We need the app to be
I am designing a web app that has some information that needs to be
I need to develop a simple webapp that allows the user to highlight a
We are a new startup that is going to develop a web app for
I need to develop a custom RoleProvider for a MultiTenant web app. At the
I need to develop a web site where I upload videos using the youtube
I need to develop a easy web site, I usually use bootstrap CSS framework,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.