![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 25 Oct 2001 @ 19:53:01 GMT
Sorry...forgot to include the aggregation clause.....{;->
select A.col1,
A.colfrequency
from (select distinct(col1) as col1,
count(col2) as colfrequency
from table
group by col1) A
where A.colfrequency > 1 ;
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||