I want to record data of requests in a table, however they asked me to generate a unique code for the request and that it will take the structure that I show in the following image:
I have absolutely no idea how to do it, if someone can help me I would really appreciate it. I'm working with SQLSERVER2014