January 11, 2013 at 4:43 am
Hello,
It is possible to use dense_rank() function such that rank to begin with a specified ID ?
Thank you.
G.
January 11, 2013 at 5:36 am
dense_rank, like all the windowing functions like row_number,ntile and rank all start with one, so just add your some number to it to get your starting number
select
dense_rank() over (order by object_id) + 428600 As Val, *
from sys.columns
Lowell
January 11, 2013 at 5:52 am
Tks.
G.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply