我无法编写查询发现这是由用户生成的3月6日人数最多的鸣叫一天的小时项(模式),2010年计数最蜂巢数据
我创建了我的twitter数据表。
create table twitter.full_text_ts as
select id, cast(concat(substr(ts,1,10), ' ', substr(ts,12,8)) as timestamp) as ts, lat, lon, tweet
from full_text;
现在我需要查询它来寻找其一天的时间对一个特定的一天中最鸣叫。
我能够通过输入
select ts
from twitter.full_text_ts
where to_date(ts) = '2010-03-06'
order by ts desc;
这个输出看到在某一天的鸣叫的所有时间戳(TS):
2010-03-06 02:10:01
2010-03-06 02:11:15 and so on.
我想要做的是他们组在一小时内,我可以看到什么时间有最多的条目。
感谢,
卡尔
给我一个指定日期每个小时的入场次数。将为我工作。谢谢 ! – Cale