I have a need for a custom serial number in the format U2011-001 and so on and so forth where 2011 is the year and each year it has to start over, I thought about using the id to generate it when it came out but that just keeps going up…I need this to restart each year.
Share
I made a table that stored the value and did 2 SQL queries one to find the last updated time check if it is a new year if so restart the number.