UPDATED: For Microsoft SQL Server.
This seems simple but I'm banging my head against the wall to figure it out.
I've got a single table of Loan data that I want to pivot and summarize for each month the payments were due. This is similar to a "static pool analysis" with each pool of loans for rows and the months as columns. You can see the sample data using this SQL Fiddle.
I've created a 90 second screencast to better explain the pivot and summary results I need if that helps. Thanks for your help!