Skip to content
Advertisement

Writing data to a single row of multiple tables

I have a table with error numbers and a reference for storing errors. I need to write errors in one line, I got the following option, but it depends on the order of records in the table.

enter image description here

enter image description here

Result of work:

enter image description here

I expect to see two entry added with FileId = 0 and one “Not found” error and three entries with File Id = 10, and two “Disconnect; Exception” errors.

Advertisement

Answer

You can try below using STUFF() function

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement