R Replacing Loop Based Deduplication Code With Redshift Sql Stack

R Replacing Loop Based Deduplication Code With Redshift Sql Stack