Thank you very much for your attention.I'm facing a mental block to achieve this in a performant manner:Input:a abcc cdDesired output:a 1a 1b 2c 3c 3c 3d 4Any suggestions? Have a good day (night, afternoon or evening) and greetings from México City.
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных