Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

show row data into columns

$
0
0

Hi guys

i have data coming in multiple rows and want to show same data in columns like multiple colours per product. colour are fixed in numbers i.e only three colours are there per product not more than that..

the major problem is that i can't use row_number function

sample data is like this

idproduct_namecolour

101A red

101A black

101A Green

result required:-

id product_namecolour1colour2colour3

101A redblack green

thanks & Regards



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>