Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Vertical to Horizontal

    WITH CTE AS (

    SELECT DISTINCT Store, PhoneNr,

    ROW_NUMBER() OVER(PARTITION BY Store ORDER BY PhoneNr) AS Items

    FROM ##testEnvironment)

    SELECT Store,(SELECT PhoneNr FROM CTE AS C WHERE...

Viewing post 1 (of 1 total)