Hi,
We have a portal where multiple users upload transaction. A key Id is generated at time of insertion (e.g. FY20/JAN20/XXXXX) Key is Financial year FY20; month & year and XXXXX is a running serial no. by picking up max number + 1
if certain criteria is met else the Key Id is blank.
At times it happens 2 users uploads transaction at same time & both get same Key Id.
How can I avoid duplication of Key Id.
Can't have Unique Key on Key Id since some of the records are duplicate key Ids.
What other option is available?
TIA
Raj
We have a portal where multiple users upload transaction. A key Id is generated at time of insertion (e.g. FY20/JAN20/XXXXX) Key is Financial year FY20; month & year and XXXXX is a running serial no. by picking up max number + 1
if certain criteria is met else the Key Id is blank.
At times it happens 2 users uploads transaction at same time & both get same Key Id.
How can I avoid duplication of Key Id.
Can't have Unique Key on Key Id since some of the records are duplicate key Ids.
What other option is available?
TIA
Raj