Hello All,
We have a customer table and Loans fact table
customer table
custid custname country
Loans
custID ParentID GroupID loanamount.
Currently we have created 3 alias table for customer and joined with loans on the keys in loan table
customer.ID = Loans.custID
groupCustomer.ID=Loans.ParentID
ParentCustomer.ID=Loans.GroupID
Do we have a better approach than this? Can we manage it with hierarchy and a single customer table?
Thanking you in advance for any points.