Skip to content
Advertisement

How to concatenate two columns in my case using SQL? [closed]

I have 2 tables called Standards and StandardDetails

Standards

StandardDetails

I want to concatenate two columns RcItemCode and Numbers from StandardDetails and expected result looks like this:

Seriously have no clue for converting rows into column and concatenate it.

Note

I need to make it as a VIEW

Advertisement

Answer

You may try this. Use group by for grouping your id and stuff to concatenate your Code into comma separated values.

For View

Please try this.

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