Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Convert multiple matrices in one table to multiple row vectors using SQL

$
0
0

How would I use SQL to present data in tableA into a row vector here is an example:

Table A

type   x1  x2  x3
A      469
A      741
A      962
B      138
B      279

I am looking for code that would convert to the following

type   x1  x2  x3  x1'  x2'  x3'  x1'' x2'' x3''
A      469741962
B      138279

Viewing all articles
Browse latest Browse all 10045

Trending Articles