Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Deleting duplicate rows in multiset table - response (4) by mayya@teradataforum

$
0
0

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..
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>