准备工作
1.翻墙软件
2.谷歌账号
3.注册谷歌开发者
Big Query服务
什么是BigQuery ?
BigQuery是真正为大数据而生的企业级云计算产品,其核心是云平台的一项基础服务(PaaS),用于对TB级别的大数据进行实时的分析处理。
单纯从技术上来看,BigQuery就是一个在云端的SQL服务(类SQL),提供对海量数据的实时分析;据Google工程师所说,其处理5个TB数据,15秒即可返回结果。
类似的平台有雅虎的YQL,不过运营模式有区别,谷歌BigQuery 偏向于企业服务,YQL偏向于做公共的数据查询接口服务。
教程
登录谷歌云服务平台
https://cloud.google.com/
建立一个项目
找到getting started 教程栏目
选择查看所有教程
https://console.cloud.google.com ... ct=adept-region-441
选择BigQuery栏目
本帖最后由 hejinxin 于 2017-4-23 23:14 编辑
默认提供了一些公共的数据库
大致是 天气,人口名字统计,疾病数据,Hacknews 新闻,纽约的交通数据
估计大家对天气,疾病,新闻,交通也不会感兴趣。
我们查查美国的妹子都叫啥名字吧
选择1910之2013的数据查询
先查查1990年的妹子的名字排名
SELECT * FROM [bigquery-public-data:usa_names.usa_1910_2013] where year=1990 and gender="F" and state='CA' order by number desc LIMIT 1000
Row | state | gender | year | name | number | |
1 | CA | F | 1990 | Jessica | 6631 | |
2 | CA | F | 1990 | Ashley | 4533 | |
3 | CA | F | 1990 | Stephanie | 3999 | |
4 | CA | F | 1990 | Amanda | 3855 | |
5 | CA | F | 1990 | Jennifer | 3607 | |
6 | CA | F | 1990 | Elizabeth | 3170 | |
7 | CA | F | 1990 | Sarah | 2840 | |
8 | CA | F | 1990 | Brittany | 2737 | |
9 | CA | F | 1990 | Samantha | 2722 |
Row | state | gender | year | name | number | |
10 | CA | F | 1990 | Michelle | 2450 | |
11 | CA | F | 1990 | Melissa | 2440 | |
12 | CA | F | 1990 | Nicole | 2350 | |
13 | CA | F | 1990 | Maria | 2317 | |
14 | CA | F | 1990 | Vanessa | 2227 | |
15 | CA | F | 1990 | Lauren | 2182 | |
16 | CA | F | 1990 | Megan | 2008 | |
17 | CA | F | 1990 | Christina | 1951 | |
18 | CA | F | 1990 | Emily | 1731 |
再查查1995年的
SELECT * FROM [bigquery-public-data:usa_names.usa_1910_2013] where year=1995 and gender="F" and state='CA' order by number desc LIMIT 1000
Row | state | gender | year | name | number | |
1 | CA | F | 1995 | Jessica | 4622 | |
2 | CA | F | 1995 | Ashley | 2904 | |
3 | CA | F | 1995 | Stephanie | 2859 | |
4 | CA | F | 1995 | Jennifer | 2697 | |
5 | CA | F | 1995 | Samantha | 2428 | |
6 | CA | F | 1995 | Emily | 2341 | |
7 | CA | F | 1995 | Sarah | 2270 | |
8 | CA | F | 1995 | Elizabeth | 2244 | |
9 | CA | F | 1995 | Amanda | 2026 |
Row | state | gender | year | name | number | |
10 | CA | F | 1995 | Maria | 1999 | |
11 | CA | F | 1995 | Vanessa | 1983 | |
12 | CA | F | 1995 | Kimberly | 1774 | |
13 | CA | F | 1995 | Melissa | 1770 | |
14 | CA | F | 1995 | Alexis | 1704 | |
15 | CA | F | 1995 | Jasmine | 1663 | |
16 | CA | F | 1995 | Taylor | 1620 | |
17 | CA | F | 1995 | Michelle | 1600 | |
18 | CA | F | 1995 | Megan | 1469 |
简单分析下
有几个名字经久不衰
Jessica,Ashley,Stephanie,Amanda,Jennifer
从前十往后变化就比较大了
BTW 送大家一首Stephanie的歌吧
Hey Jude http://music.163.com/#/song?id=287565