2017-08-08 7 views

答えて

1

1 - BigQueryの標準SQL

#standardSQL 
SELECT tag, COUNT(1) AS popular 
FROM `bigquery-public-data.stackoverflow.stackoverflow_posts`, 
    UNNEST(SPLIT(tags, '|')) AS tag 
WHERE DATE(creation_date) 
    BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 3 YEAR) 
    AND DATE_SUB(CURRENT_DATE(), INTERVAL 2 YEAR) 
GROUP BY tag 
HAVING tag LIKE '%java%' 
ORDER BY popular DESC 
-- LIMIT 100 
関連する問題