I am working on postgres query to remove duplicates from a table. The following table is dynamically generated and I want to write a select query which will remove the recor
create temp t1 as
select first, min (second) as second
from df1
group by first
select * from df1
inner join t1 on t1.first = df1.first and t1.second = df1.second
Its a satisfactory answer. Thanks for your help @Hack-R