Posts by Lucas BSM • 1 point
1 post
-
0
votes0
answers42
viewsQ: Repeat lines in Array: is it possible with UNNEST? or is there any other way? - Bigquery
I made this query in SQL in Bigquery (Google): SELECT FORMAT_DATE("%E4Y-%m", date) AS Mes, cliente, ARRAY_AGG( DISTINCT date ORDER BY date DESC LIMIT 2) AS date FROM…