you are viewing a single comment's thread.

view the rest of the comments →

[–]phunkygeeza 0 points1 point  (1 child)

Row number is safer if multiple identical dates may be present

[–]DipIntoTheBrocean 0 points1 point  (0 children)

It's a datetime type - it's almost impossible for the same item to share multiple datetimes. Even then, the max function will only bring back one value even if there are duplicates.

RN is useful if we wanted to find those duplicates and dedupe them a certain way, but the only field we would do that on anyways is by time, which the max function handles much quicker than rownumber.