Tutorial to create a matrix in TSQL from a table containing detail values:http://www.tsqltutorials.com/pivot.php
Tags: pivot, matrix
SQL