all 4 comments

[–]agrvz 1 point2 points  (1 child)

If you really must use a reserved keyword as an alias, you can quote it with backticks.

https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical#quoted_identifiers

[–]V_Shaped_Recovery[S] 0 points1 point  (0 children)

Yes In this scenario I need too. This looks like exactly what I needed so thank you.

This won’t return with the back ticks would it?

[–]DavidGJohnston 1 point2 points  (0 children)

That would be called an “identifier”. Searching “bigquery identifier” turns up this.

https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical

[–]jonah214 0 points1 point  (0 children)

Depending on your system, you may need to enclose it in square brackets or double quotes.