Hi all,
I'm really stuck with this table:
MAP
--------------------------
ID - CLASS - COUNTRY
1 - B - US
2 - B - CA
3 - A - CA
1 - B - PT
1 - B - CA
1 - C - US
2 - A - CA
2 - A - US
3 - B - CA
I have to query id's with same class and >2 different countries. I've tried :
select id,class,country from map group by id,class,country having count(country)>2;
But doesn't work

. Any advice or clue?
Thanks!