... where count(col) > 1 ... where count(col) > 1 oracle oracle

... where count(col) > 1


Use the having clause for comparing aggregates.

Also, you need to group by what you're aggregating against for the query to work correctly. The following is a start, but since you're missing a group by clause still it won't quite work. What exactly are you trying to count?

select fk, count(value) from table group by fkhaving count(value) > 1;