{"categories":["\u6280\u8853","SQL"],"author_url":"https://blog.hatena.ne.jp/Windymelt/","url":"https://blog.3qe.us/entry/2020/11/13/180655","height":"190","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F2020%2F11%2F13%2F180655\" title=\"\u30ed\u30b0\u306e\u524d\u6708\u6bd4\u3092\u51fa\u3059SQL - Lambda\u30ab\u30af\u30c6\u30eb\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://blog.3qe.us/","title":"\u30ed\u30b0\u306e\u524d\u6708\u6bd4\u3092\u51fa\u3059SQL","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"type":"rich","blog_title":"Lambda\u30ab\u30af\u30c6\u30eb","provider_name":"Hatena Blog","description":"\u96d1\u306a\u30bf\u30a4\u30c8\u30eb\u3067\u3059\u304c\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u3053\u3046\u3044\u3046\u3053\u3068\u3067\u3059 \u6642\u523btime\u3068\u306a\u3093\u304b\u3044\u308d\u3044\u308d\u304c\u8a18\u9332\u3055\u308c\u305f\u30ed\u30b0\u30c6\u30fc\u30d6\u30eblog\u304c\u3042\u308b time\u306f\u79d2\u5358\u4f4d\u3067\u8a18\u9332\u3055\u308c\u3066\u3044\u308b \u6642\u9593\u5358\u4f4d\u3067\u4e38\u3081\u3066COUNT(1)\u3057\u3066\u4ef6\u6570\u3092\u51fa\u3057\u305f\u3044 \u3053\u3053\u307e\u3067\u3060\u3063\u305f\u3089 SELECT date_trunc('hour', date_parse(time, '%d/%b/%Y:%H:%i:%s +0900')) as hour, COUNT(time) as access_num FROM log WHERE dt >= to_iso8601(current_date - interval '30' day) GROUP BY date_trun\u2026","published":"2020-11-13 18:06:55","author_name":"Windymelt"}