{"blog_url":"https://oboe2uran.hatenablog.com/","categories":["SQL"],"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2024%2F09%2F15%2F093830\" title=\"ROW_NUMBER() \u3067\u30da\u30fc\u30b8\u30f3\u30b0 - Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","type":"rich","blog_title":"Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332","published":"2024-09-15 09:38:30","author_url":"https://blog.hatena.ne.jp/posturan/","url":"https://oboe2uran.hatenablog.com/entry/2024/09/15/093830","version":"1.0","height":"190","description":"\u5b9f\u884c\u8a08\u753b\u3092\u8abf\u67fb\u3057\u3066\u3001\u30d2\u30f3\u30c8\u53e5\u3092\u4ed8\u3051\u308b\u306a\u3069\u306e\u8abf\u6574\u3082\u691c\u8a0e\u304c\u5fc5\u8981\u3067\u3042\u308b\u304c\u3001 ROW_NUMBER() \u3067\u30da\u30fc\u30b8\u30f3\u30b0\u3067\u3092\u3059\u308b\u5834\u5408\u306eSQL\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002\uff11\u30da\u30fc\u30b8\u76ee\u3068\u3057\u3066\u5148\u982d\uff11\u884c\u76ee\uff5e\uff11\uff10\u884c\u76ee SELECT * FROM (SELECT ROW_NUMBER() OVER (ORDER BY avrg DESC, point DESC) AS rnum ,a.* FROM user_score a ) tmp WHERE rnum BETWEEN 1 AND 10 ORDER BY avrg DESC, point DESC","width":"100%","provider_url":"https://hatena.blog","author_name":"posturan","title":"ROW_NUMBER() \u3067\u30da\u30fc\u30b8\u30f3\u30b0"}