Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,I have a table with a list of dates:EmployeeID, BranchID, ContractStartDate1, 65, 24-06-20192, 57, 06-07-20163, 23, 13-11-20171, 57, 05-03-2018EmployeeID, Name, PaidDate ,Salary1, John, 25-07-2019, 25001, John, 25-06-2019, 25001, John, 25-05-2019, 20001, John, 25-04-2019, 20001, John, 25-03-2019, 2000etc...I'd like to link these tables:So when the contract date changes with a different branchID the salaries there after will be linked to that branch.Result:EmployeeID, Name, PaidDate,Salary, Branch ID1, John, 25-07-2019, 2500 , 651, John, 25-06-2019, 2500, 651, John, 25-05-2019, 2000, 571, John, 25-04-2019, 2000,571, John, 25-03-2019, 2000, 57