Good morning .
I trying remove duplicates , but is very difficult.
I try this :
CREATE TABLE t1 AS SELECT DISTINCT *
FROM t2;
But no is good i want remove all duplicates field1 is same .
I need help in other databases is ok but in vertica no good.
i used this but in vertica not ok.
INSERT INTO t2
select
f1 ,
f2 ,
f3 ,
f4 ,
f5,
f6 ,
f7 ,
f8 ,
f9 ,
f10 ,
f11 ,
f12 ,
f13 ,
f14 ,
f15 ,
f16 ,
f17 ,
f18 ,
f19 ,
20 ,
Ranking
from
( select rank() over (partition by f2 order by
f1 ,
f3 ,
f4 ,
f5,
f6 ,
f7 ,
f8 ,
f9 ,
f10 ,
f11 ,
f12 ,
f13 ,
f14 ,
f15 ,
f16 ,
f17 ,
f18 ,
f19 ,
20
asc ) as Ranking,
- from t2 ) a where a.Ranking =1
;
I wait help .
thank you.