I have table like:
ID PERSON UPDATE
1 132 1.1.2015
1 132 2.1.2015
3 152 4.5.2013
9 152 1.2.2013
I need to count persons which have different id's which is greater than 1.
I think you want this:
select person, count(distinct id)
from t
group by person
having count(distinct id) > 1;
id = 1.
9 152 1.2.2014, would the result still be 2 or would it be 3?