SQL Query for generating matrix like output querying related table in SQL Server
- by Nagesh
I have three tables:
Product
ProductID ProductName
1 Cycle
2 Scooter
3 Car
Customer
CustomerID CustomerName
101 Ronald
102 Michelle
103 Armstrong
104 Schmidt
105 Peterson
Transactions
TID ProductID CustomerID TranDate Amount
10001 1 …