03 Nov 18 · victor · #bigquery ·   Bookmark   ×

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 Nov 18

Enjoy great content like this and a lot more !

Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds