![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 25 Oct 2001 @ 19:49:15 GMT
You should probably use a derived table to do this.....something like the following might do the trick:
select A.col1,
A.colfrequency
from (select distinct(col1) as col1,
count(col2) as colfrequency
from table) A
where A.colfrequency > 1 ;
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||