{"categories":["SQL","postgresql","mysql"],"blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u7684\u306a\u6280\u8853\u7684\u306a\u30d6\u30ed\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffujita222.hateblo.jp%2Fentry%2F2015%2F01%2F22%2F182659\" title=\"\u3042\u308b\u30ab\u30e9\u30e0\u306e\u5024\u304c\u91cd\u8907\u3057\u3066\u3044\u308b\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\u3059\u308bSQL - \u30a8\u30f3\u30b8\u30cb\u30a2\u7684\u306a\u6280\u8853\u7684\u306a\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"fujita222","version":"1.0","provider_name":"Hatena Blog","type":"rich","author_url":"https://blog.hatena.ne.jp/fujita222/","width":"100%","url":"https://fujita222.hateblo.jp/entry/2015/01/22/182659","title":"\u3042\u308b\u30ab\u30e9\u30e0\u306e\u5024\u304c\u91cd\u8907\u3057\u3066\u3044\u308b\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\u3059\u308bSQL","description":"\u4e45\u3005\u306b\u8a18\u4e8b\u66f8\u304f\u306a\u3041\u301c\u3002 \u3053\u3093\u306a\u611f\u3058\u3002 product_code\u304c\u91cd\u8907\u3057\u3066\u3044\u308buser_id 80\u306e\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u3002 >|SQL| SELECT product_id, product_code, create_date FROM productsWHERE user_id = 80 AND product_code IN ( SELECT product_code FROM products WHERE user_id = 80 GROUP BY product_code HAVING COUNT(*)>1) ORDER BY product_code ||<","blog_url":"https://fujita222.hateblo.jp/","published":"2015-01-22 18:26:59","height":"190","provider_url":"https://hatena.blog","image_url":null}