I need to retrieve the country from a number having a table with international_prefix and local_prefix like image.
This is a test that I've made but unfortunately won't work.
SELECT *
FROM core_phone_prefix
WHERE (("+393925559000").asString()).left(international_prefix.append(local_prefix).length()) = international_prefix.append(local_prefix)
