Seems like a pivot would probably work for what you have described.
You can see an example here. http://technet.microsoft.com/en-us/library/ms177410(v=sql.105).aspx
With a table structure (ddl) and more consumable data, somebody could probably help in more detail.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events