Viewing post 1 (of 1 total)
How about this? Although i agree query might get longer when there would be more than 3 items
SELECT DISTINCT CustomerID
FROM #Purchase P
WHERE EXISTS (SELECT...
March 29, 2012 at 2:23 am
#1466227