I have below sql query and need to run at bigquery
select replace(substring(p.name, charindex(',', p.name), len(p.name)), ',', '') AS [First_Name] from people p
so I have tried below big query syntax
select replace(SUBSTR(p.name, charindex(',', p.name), len(p.name)), ',', '') AS [First_Name] from people
but i am getting below error
Function not found: charindex at [1:1]