I have a recipients and recipient_history table. In the recipients table there are such fields as:
- RECIPIENT_ID,
- RECIPIENT_NAME
and in the recipient_history table:
- RECIPIENT_ID,
- START_DATE,
- END_DATE
- JOB_NAME,
- DEPARTAMENT_ID.
I need to display the name and last place of the employee robots. It should be borne in mind that in the recipient_history table, the same employee may meet twice with different JOB_NAMEs.
for example
RECIPIENT_ID[1|1|2], START_DATE[12.03.2012|12.03.2015|15.04.2012], END_DATE[12.03.2014|12.03.2016|12.03.2013], JOB_NAME[it_spec,it_prog, manager], DEPARTAMENT_ID[101,102,103]