Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Want to remove some data values on the basis of count second column - forum topic by nileshbhaw

$
0
0

Hi,
 
I have below query
 
sel ent_cust_id , count(*)
from UD466.TAR_Inst a,
SECURED.EC_CUST_SUMRY b
where a.acct_id=b.acct_id
and a.sor_id=b.sor_id
and b.ent_cust_id is not null
group by 1 having count(*) >10
 
I want to remove all the acct_id from UD466.TAR_Inst table where ent_cust_id  are coming more than 10 times but in UD466.TAR_Inst  table there is no ENT_CUST_ID column , i can write query by using simple sub queries but i want to write OLAP query using Partition by clause.
 
Please suggest something?

Tags: 
Forums: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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