I have 2 tables i.e employee details and employee designation history.
Employee details table - EMPID , Name , Age ,Gender. (EmpID - Primary Key)
Designation history table - EMPID , Startdate , Enddate , JobRole.
I know there needs to be one more key in designation history table to add multiple records for given employee ID ,which one should i use ?
So that i can get output like this - Sumedh was Associated SAP developer from 2021 - 2022 then from 2022 - 2024 he was sr. Developer then again got demoted to Associate sap developer in 2024-25.