[sql-server] select unique rows based on single distinct column