Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vvvvvvizard
Partner - Specialist
Partner - Specialist

Link budget with actual

Struggling with these two tables , should i create another link table or is their a way to concatenate them

1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

Yes, the logic is correct

View solution in original post

7 Replies
YoussefBelloum
Champion
Champion

Hi,

on the Budget table, the Period field is the Month field ?

here the problem is that you have a Budget for year 2013 and the transactions are for 2011 and 2012..

you can link them by creating a composite key, but you can't compare your sales with your Budget.

vvvvvvizard
Partner - Specialist
Partner - Specialist
Author

Budget is in financial year, month 3 is period 1, transactions is in calendar date

YoussefBelloum
Champion
Champion

Month 3 is Periode 1 ? how ?

can you take a look at what I wrote to you and elaborate more ?

vvvvvvizard
Partner - Specialist
Partner - Specialist
Author

I guess il show it as a forecast then

YoussefBelloum
Champion
Champion

it depends on how it was calculated.. both are estimations.

your key here is the COMPANY_ID and CUSTOMER_ID, so you should use a composite key

vvvvvvizard
Partner - Specialist
Partner - Specialist
Author

Scenario 1

Just a sanity check , if one table joins another table using a composite key the model will work , straightfoward .

scenario

If 3  or more tables are joined by the same composite key , then one has to  use a link table or concatenate the tables where applicable  . Is that logic correct

YoussefBelloum
Champion
Champion

Yes, the logic is correct