I'm trying to get all the contacts that have more than one phone number. Using sqlite3, I queried the database like this:
select number,name,person,type
from view_v1_phones
where person in
(select person from view_v1_phones group by person having count(*)>1);
and got what I was looking for. However, I don't know how I can use this when I'm querying the database using contacts api (ContactsContract).
Help!