Hi All,
My
java generates a code say 'Job 1'.
The databse has 5(dynamic no of) executives say'E1','E2','E3','E4','E5' etc.
So when 'Job 1' is generated by the system, it should be assigned to the 'E1'.
Similarly,
'Job 2' ---- 'E2'
'Job 3' ---- 'E3'
'Job 4' ---- 'E4'
'Job 5' ---- 'E5'
'Job 6' ---- 'E1'
and so on.
Could anyone please suggest an algorithm for this.
Thanks.