Home Page for the TeradataForum

Archives of the TeradataForum

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

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

Subj:   Re: Count Function
From:   Yonina Schuchman

This will work. Make sure your HAVING clause comes after the GROUP BY clause.

select col1 , count(seq_nbr)
from databasename.tablename
group by 1
having count(seq_nbr) > 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: 28 Jun 2020