Not sure what I did this morning but I must have hit my head really hard
Here is my query
select c.id as cid,c.studentid as cstudentid
from certification c
group by c.id,c.studentid
order by c.studentid
My results are this
cid studentid
35267 6400
5332 6401
35271 6402
144024 6402
252727 6402
434317 6402
529734 6405
...
I want the student ids that are repeared more than twice like 6402
I tried the basic query like this
select c.id as cid,c.studentid as cstudentid
from certification c
group by c.id,c.studentid
having count(c.studentid) > 2
order by c.studentid
the output is Empty/nothing/no table...
System: Postgres 9.3
What am I doing wrong?