I have VARCHAR IDs but need BIGINT ids.
-- have: ORG1234
--need: 1234
SELECT
CAST(TRIM('ORG' FROM ads_solutions_advertiser_id) AS BIGINT) AS num_id
FROM
tab
>>>
Syntax error: mismatched input 'CAST'. Expecting: <query>
Followed this tutorial:
SELECT TRIM('#! ' FROM ' #SQL Tutorial! ') AS TrimmedString;
What's this simplest way to fix this?