{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F2014%2F10%2F09%2F004105\" title=\"\u3010SQL\u3011\u6700\u65b0\u65e5\u4ed8\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f - \u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"author_url":"https://blog.hatena.ne.jp/dk521123/","author_name":"dk521123","provider_name":"Hatena Blog","height":"190","url":"https://dk521123.hatenablog.com/entry/2014/10/09/004105","version":"1.0","blog_url":"https://dk521123.hatenablog.com/","provider_url":"https://hatena.blog","categories":["SQL"],"description":"\u25a0 \u306f\u3058\u3081\u306b SQL\u3067\u3001\u6700\u65b0\u65e5\u4ed8\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u305f\u3044\u6642\u3063\u3066\u591a\u3005\u3042\u308b\u306e\u3067\u30e1\u30e2\u3002 \u76ee\u6b21 \u3010\uff11\u3011\u65b9\u6cd5 \u3010\uff12\u3011\u30b5\u30f3\u30d7\u30eb \u3010\uff13\u3011\u88dc\u8db3\uff1a\u904e\u53bb\u76f4\u8fd1\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408 \u3010\uff11\u3011\u65b9\u6cd5 SELECT * FROM \u30c6\u30fc\u30d6\u30eb\u540d AS A1 INNER JOIN (SELECT \u4e3b\u30ad\u30fc, MAX(\u30ab\u30e9\u30e0\u540d) AS latest FROM \u30c6\u30fc\u30d6\u30eb\u540d GROUP BY \u4e3b\u30ad\u30fc)) AS A2 ON A1.\u4e3b\u30ad\u30fc = A2.\u4e3b\u30ad\u30fc AND A1.\u30ab\u30e9\u30e0\u540d = A2.latest \u3010\uff12\u3011\u30b5\u30f3\u30d7\u30eb \uff11\uff09PostegreSQL\u306e\u5834\u5408 \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf -- \u30c6\u30fc\u30d6\u30eb\u5b9a\u7fa9 CREATE TABLE item ( id characte\u2026","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2","published":"2014-10-09 00:41:05","type":"rich","width":"100%","title":"\u3010SQL\u3011\u6700\u65b0\u65e5\u4ed8\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f"}