Skip to content

Instantly share code, notes, and snippets.

@rozap
Created February 8, 2018 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rozap/15569a1d61472599c36b8b98916439db to your computer and use it in GitHub Desktop.
Save rozap/15569a1d61472599c36b8b98916439db to your computer and use it in GitHub Desktop.
-- call the replace function on the `response_type` column
-- which will replace the string 'Medic' with 'Medical'
replace(`response_type`, 'Medic', 'Medical')
-- call the to_number function on the `latitude` column
to_number(`latitude`)
-- call the to_boolean function on the incident column. Note we don't need the
-- `backticks` when the column name is alphanumeric+underscores.
to_boolean(incident_number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment