{"version":"1.0","type":"rich","author_name":"tokizuoh","categories":["PostgreSQL"],"provider_name":"Hatena Blog","image_url":null,"blog_title":"\u30ab\u30eb\u30dc\u30ca\u30fc\u30e9\u8857\u9053","width":"100%","url":"https://tokizuoh.hatenablog.com/entry/2022/02/09/001327","published":"2022-02-09 00:13:27","author_url":"https://blog.hatena.ne.jp/tokizuoh/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokizuoh.hatenablog.com%2Fentry%2F2022%2F02%2F09%2F001327\" title=\"PostgreSQL\u306eLIKE\u3092\u8a66\u3059 - \u30ab\u30eb\u30dc\u30ca\u30fc\u30e9\u8857\u9053\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"PostgreSQL\u306eLIKE\u3092\u8a66\u3059","blog_url":"https://tokizuoh.hatenablog.com/","description":"\u4eca\u65e5\u3082SQLZOO\u3067SQL\u3092\u5b66\u3093\u3060\u3002 sqlzoo.net \u6628\u65e5\u306e\u30d6\u30ed\u30b0\u3067BETWEEN\u3092\u8a66\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3082\u66f8\u3051\u308b\u3002 SELECT idl.id AS id, idl.name AS name, COUNT(idl.id) AS count FROM idol idl INNER JOIN idol_unit idlunt ON idl.id = idlunt.idol INNER JOIN unit unt ON idlunt.unit = unt.id GROUP BY idl.id HAVING idl.count >= 2 AND idl.count <= 3 ORDER BY \u2026","provider_url":"https://hatena.blog"}