I need a netezza query to delete exact duplicate records and keep only unique records. with how many ways we can delete duplicates in netezza.
Thanks in advance. RG
答案 0 :(得分:1)
这可能是至少软化的解决方案:
Create table X as select distinct * from YOURTABLE
;
----确保X看起来像你期望的那样----
Truncate table YOURTABLE
;
Insert into YOURTABLE select * from X
;
您可以选择将表格X创建为“临时”,但如果您不能100%确定自己在做什么,则丢失数据的风险可能会更高......