I have a .db
file that contains the contacts list from an android phone. I have joined two tables to display the mobile phone number next to the contact. But I am trying to display the records that only contain the mobile phone number. But when I run the SQL statement it does not return a table. You need to keep in mind some of the saved phone numbers begin with +44 and the others 0.
This is my SQL statement:
select contacts.display_name, data.data1 as Phone_Number,
contacts.times_contacted, contacts.last_time_contacted
from contacts, data
where contacts._id = data.raw_contact_id and data.data1 like '%[0-9]%'
Any help would be appreciated.