Hi all,
I have an Employee Table and in this table I need to generate the Employee ID base on Employee type, for example : Domestic employee will start with D and 4 digits; International will start with I and 4 digits.
| Employee ID | Employee Type | Employee Name |
| D-0001 | Domestic | David |
| D-0002 | Domestic | John |
| I-0001 | International | Frank |
| I-0002 | International | Paul |
| | | |
I tried to use the auto number but it can only go with the fixed prefix and the sequence is not independent for each prefix!
Is there any way to solve this out!
Thanks so much for your help!