Loops in BigQuery
Learn how to use BigQuery scripting to calculate Fibonacci numbers with for loops
Published in
4 min readJul 7, 2020
Ever wanted to loop around stuff in SQL? Well, you can with scripting. Let’s see how we can calculate Fibonacci numbers in BigQuery with loops.
I previously showed how to do Fibonacci in BigQuery with JavaScript UDFs (user-defined functions) and also talked about arrays in…