Hi @Eleri -
This post shows how to use rank like you would row_number to remove duplicates.
rank
row_number