ported to Server via OPENQUERY
enforced rown number to remove duplicate students