Hello! How are you?
I would like some help with a solution I'm having difficulty finding answers for.
I have a table and I need to generate a unique code (ID), but not based on randomness, rather on a relationship of information within the table itself.
The ID in question should have a format similar to this: YYMMDD + BR + Numerator
Where the numerator should differentiate between identical records, for example:
Suppose on the date 23-08-08 there were 3 records. The code should then be: 230808BR01, 230808BR02, 230808BR03.
Does anyone know how to solve an issue like this?