How to Concatenate two strings in BigQuery?
If you need to concatenate two strings, year and Quarter, which are structured like so: Year|Q
\n\n2007|1\n\n
Solution;
To join two strings in bigquery you will need to use the CONCAT function: You can use CONCAT() function as below
\n\nCONCAT(CAST(year as STRING),'|',CAST(quarter as STRING))
victor
posted onEnjoy 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