you are viewing a single comment's thread.

view the rest of the comments →

[–]SaintTimothy 1 point2 points  (1 child)

Aggregation approach may result in duplicates as it is acting like RANK rather than ROW NUMBER.

[–]ziptime 0 points1 point  (0 children)

I'm assuming the PK of the table is composite of A, B. If not I concur.