Get Cumulative Sum for each day. Source - https://stackoverflow.com/questions/31734599/sum-of-all-rows-prior-to-and-including-date-on-current-row-in-mysql
Make sure t1 has single row for each date and or date/customer group combination.

select 
  t1.date_id, t1.customer, sum(t2.order_count)
from 
  table1 t1
left join 
  table1 t2 on t1.customer = t2.customer
           and t1.date_id >= t2.date_id
group by 
  t1.date_id, t1.customer;

How to use multiple CTEs in a single Query. Source - https://stackoverflow.com/questions/17032293/how-to-create-cte-which-uses-another-cte-as-the-data-to-further-limit

with t1 as
(
  select * from tableA
  where name like '%A%'
),
t2 as
(
  select * from t1
  where object_id < 100
)
select * from t2;

Pad Missing Dates in Table with Zero values Source - https://stackoverflow.com/questions/19075098/how-to-fill-missing-dates-by-groups-in-a-table-in-sql?rq=1

SELECT p.date, COALESCE(a.value, 0), p.grp_no
  FROM
(  
    SELECT distinct tableA.date,tableB.grp_no
      FROM tableA
      CROSS JOIN (SELECT distinct grp_no FROM tableA) tableB
  ) 
) p LEFT JOIN TableA a
    ON p.grp_no = a.grp_no 
   AND p.date = a.date

Pivot Rows to Columns Bigquery/SQL: https://towardsdatascience.com/pivot-in-bigquery-4eefde28b3be

BigQuery - Group By and Concatenate row values in a column Source: https://stackoverflow.com/questions/41997005/bigquery-concatenate-multiple-rows-into-a-single-row

SELECT 
  user_id, 
  STRING_AGG(action ORDER BY event_time) AS event_list 
FROM yourTable 
GROUP BY user_id

BigQuery - Using ARRAY_AGG() - Concatenate Field Values and Get first Value Source: https://stackoverflow.com/questions/62080202/bigquery-standard-get-first-not-null-value-when-grouping

SELECT user_id ,
ARRAY_AGG(column_name IGNORE NULLS ORDER BY event_time desc LIMIT 1) [OFFSET(0)] as col1,
FROM `table` t
 WHERE 
GROUP BY user_id     

ARRAY_AGG() will combine all the field values into an array
IGNORE NULLS - Ignores NULLS
ORDER BY - order by the field you want
LIMIT 1 - Select only 1
[OFFSET(0)] - Converts the array type into single string