I am looking to get only alphanumeric values in the column. I have tried following Presto query but I am still getting numeric and alphanumeric values.
Query:
select
seller_id
from
myTable
where
logdate = '2019-10-07'
and regexp_like(seller_id,'^[a-z0-9A-Z]+$')
Actual Result:
12345
f7c865ff
1003147
c743a319
z87wm
google
Expected Result:
f7c865ff
c743a319
z87wm
google
Can anyone help how I can improve this so I can only get alphanumeric values?