Is there a way to have SQL scripts within a subquery ?
For example:
select col_1, col_2, count(*) from (
Declare max_radius INT64;
set max_radius = 250;
select * from my_table
where radius < max_radius
)
group by col_1,col_2
In my case it is not possible to move the variable declaration outside of the subquery. Thanks !