I have a task, I don't know how to call it... anyway,
I need to do a report for multiple people with different setup and I was thinking which of which is the best way to do it. Im using MsSQL to load the data and some stored procedure to extract and create an export file.
To illustrate,
MGR1 ->wants net sales, tax, discount
MGR2 ->wants net sales, gross sales, adjustments, tax
ACCT1 ->wants tax, discounts
I was trying to make things dynamic as it can be and to be able to address future requirements if ever... which eventually is inevitable.
Here's what I'm planning,
1. I will create 2 table reference:
a: Table1 stores all the fields required for all personnel (the table will grow in columns)
b. Table2 stores all the formula for each personnel for each field (the table will grow in rows)
I want to know if this is the correct way of doing things, why Im trying to this is because some of the requirements is yet unknown but in a sense I already have all what I need its just I am trying to eliminate the process of going through the scripts everytime there is a change in requirement instead just change the values (formulas) on the table.
Basically, can this be done? what are the pros and cons, and what possible design can be implemented to support the requirements?