Sql+ how to deduplicate data