Viewing post 1 (of 1 total)
use CTE's Below is the syntax
With CTE As
(
Select *,Row_Number() Over(Partition By Col1,Col2 Order by Col1) From TableName
)
Select * From CTE
March 30, 2010 at 12:37 am
#1141970