03 November 2018 · victor ·       Add to Favorites   Report

How to Concatenate two strings in BigQuery?

If you need to concatenate two strings, year and Quarter, which are structured like so: Year|Q



To join two strings in bigquery you will need to use the CONCAT function: You can use CONCAT() function as below

CONCAT(CAST(year as STRING),'|',CAST(quarter as STRING))


posted on 03 November 2018

Read great educational content like this and a lot more !

Members get free exclusive access to content, new courses, and discounts. Signup for a free account to write a post / comment / upvote posts. Creating an account takes less than 5 seconds and you can start earning badges & points too