I\'m stuck with an SQL query to get what I need. My input is this:
COD SINOM A 123456 B 987654, 123456, 111111 C 123456 , 234501 D 9912345699 E 99123456