Querying multiple tables in Big Query

后端 未结 5 525
小蘑菇
小蘑菇 2021-01-04 02:10

As it is not possible to update data within a table in BigQuery, and supports only append mechanism, I have decided to create new tables on monthly basis. So suppose for yea

5条回答
  •  猫巷女王i
    2021-01-04 03:08

    Standard SQL.

    Use a wildcard.

    SELECT trafficSource.medium AS Traffic_Source, COUNT(trafficSource.medium) AS Counts_Source
    FROM `608XXXXX.ga_sessions_201310*`
    GROUP BY Traffic_Source
    ORDER BY Counts_Source DESC
    

提交回复
热议问题