• Also read the article that Jeff has posted, it an excellent article...

    Previously I used to use PIVOT but after reading Jeff's article I start using CROSS TAbS....

    Thanks Jeff for that valuable article 🙂

    _______________________________________________________________
    To get quick answer follow this link:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/