Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 25 Oct 2001 @ 19:29:57 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: Count Function
From:   Girija Subramanya

Instead of where clause, please try having.

select col1 , count(seq_nbr)
from databasename.tablename
having count(seq_nbr) > 1
group by 1
order by 1 ;

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023