Home Forums SQL Server 2005 SQL Server 2005 General Discussion OVER and PARTITION BY. Please explain RE: OVER and PARTITION BY. Please explain
TecNQ
SSC Journeyman
Points: 82
More actions
May 8, 2013 at 5:49 pm
#1613576
Thanks again.
The last code needed a GROUP BY to work, but it works!
The first one didn't. It came back saying "Incorrect syntax near DISTINCT".
I assume that's the COUNT(DISTINCT...)?
Cheers
http://www.tecnq.com.au