Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Initially I have the following design
To avoid generic keys I create composite keys in both tables Budget and TempSales as follow
"Code Site"&'|'&"Code Structure"&'|'& 'O'&'|'& Date(Date#([Date Time],'YYYY-MM-DD'),'YYYYMMDD') as BudgetId
Now I didn't get the best values of budget , How to resolve it ?
"Code Site"&'|'&"Code Structure"&'|'& 'O'&'|'& Date(Date#([Date Time],'YYYY-MM-DD'),'YYYYMMDD')
Is your BudgetID unique?
no not unique
Make sure it should be else you may get wrong data as well
how to make it a unique key please ?
For that post some sample data of Budget & TempSales table...