Hi,
As i mentioned before in my first post,
select * from jedi_mvn_db.zam_multiset
where (col1,col2,col3) in
(select col1,col2,col3 from jedi_mvn_db.zam_multiset group by 1,2,3 having count(*)>1)
qualify row_number() over (partition by col1,col2,col3 order by col1,col2,col3)>1;
this statement gives me correct rows which i want to delete but when i convert the select query into delete statement like below then it gives me error ""expected something between ")" and qualify keyword."..
delete from jedi_mvn_db.zam_multiset
where (col1,col2,col3) in
(select col1,col2,col3 from jedi_mvn_db.zam_multiset group by 1,2,3 having count(*)>1)
qualify row_number() over (partition by col1,col2,col3 order by col1,col2,col3)>1;
I think we cannot use Qualify in delete statement..
Hi,
As i mentioned before in my first post,
select * from jedi_mvn_db.zam_multiset
where (col1,col2,col3) in
(select col1,col2,col3 from jedi_mvn_db.zam_multiset group by 1,2,3 having count(*)>1)
qualify row_number() over (partition by col1,col2,col3 order by col1,col2,col3)>1;
this statement gives me correct rows which i want to delete but when i convert the select query into delete statement like below then it gives me error ""expected something between ")" and qualify keyword."..
delete from jedi_mvn_db.zam_multiset
where (col1,col2,col3) in
(select col1,col2,col3 from jedi_mvn_db.zam_multiset group by 1,2,3 having count(*)>1)
qualify row_number() over (partition by col1,col2,col3 order by col1,col2,col3)>1;
I think we cannot use Qualify in delete statement..