Viewing post 1 (of 1 total)
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...
March 29, 2012 at 5:54 am
#1466294