Crosstab query help

  • Hi everyone,

    I basically have three tables, Customer, Poduct and Sales (which customers brought which products). What I want to do is crosstab a subset of products against customers or a subset of customers against products.

    I'm having real difficulty getting clear in my head the sort of query that is going to do this for me. Does anyone have an idea of what I need to be using?

    Thanks!

  • Can you maybe give us an example of your input data and desired output? Table structures too if possible.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply