{"blog_url":"https://dosomething.hatenablog.com/","published":"2016-11-08 22:10:35","description":"VIEW\u9805\u76ee\u306e\u8981\u671b\u306b\u9023\u756a\uff08\u3068\u3042\u308b\u30b3\u30fc\u30c9\u306e\u6607\u9806\uff09\u3063\u3066\u3042\u3063\u305f\u3051\u3069\u3001\u5b9f\u73fe\u306e\u76ee\u51e6\u304c\u7acb\u305f\u305a\uff08ROWNUM\u8a66\u3057\u305f\u3089\u30b0\u30c1\u30e3\u30b0\u30c1\u30e3\u3060\u3063\u305f\uff09\u3001\u904b\u7528\u3067\u3069\u3046\u306b\u304b\u3057\u3066\u3082\u3089\u304a\u3046\u3068\u76f8\u8ac7\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001\u6559\u3048\u3066\u3044\u305f\u3060\u3044\u305fDENSE_RANK\u3067\u89e3\u6c7a\u3057\u305f\u306e\u3067\u5099\u5fd8\u9332\u3002 \u3010\u9023\u756a\uff08\u3068\u3042\u308b\u30b3\u30fc\u30c9\u306e\u6607\u9806\uff09\u3011DENSE_RANK() OVER(ORDER BY \u3068\u3042\u308b\u30b3\u30fc\u30c9) \u5206\u6790\u95a2\u6570\u3068\u3044\u3046\u3089\u3057\u3044\u3002 \u3042\u3068\u3053\u308c\u3082\u6559\u3048\u3066\u3044\u305f\u3060\u3044\u305f\u306e\u3067\u3001\u3044\u3064\u304b\u4f7f\u3046\u6642\u306e\u305f\u3081\u306b\u5099\u5fd8\u9332\u3002 \u3010\u3068\u3042\u308b\u30b3\u30fc\u30c9\u306e\u5b58\u5728\u6570\u3011COUNT(DISTINCT \u3068\u3042\u308b\u30b3\u30fc\u30c9) OVER() EXCEL\u3082\u305d\u3046\u306a\u3093\u3060\u3051\u3069\u3001\u3053\u3046\u3044\u3046\u95a2\u6570\u306e\u5f15\u51fa\u3057\u304c\u5168\u7136\u306a\u3044\u3002\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u307f\u308b\u3079\u304d\u306a\u306e\u3060\u308d\u3046\u304b\u3002","provider_url":"https://hatena.blog","height":"190","author_name":"PET_HAL","author_url":"https://blog.hatena.ne.jp/PET_HAL/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdosomething.hatenablog.com%2Fentry%2F2016%2F11%2F08%2F221035\" title=\"DENSE_RANK\u2026\uff1f - \u65e9\u304f\u306a\u3093\u3068\u304b\u3057\u306a\u3044\u3068\u2026\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","title":"DENSE_RANK\u2026\uff1f","blog_title":"\u65e9\u304f\u306a\u3093\u3068\u304b\u3057\u306a\u3044\u3068\u2026","provider_name":"Hatena Blog","categories":["SQL"],"version":"1.0","type":"rich","url":"https://dosomething.hatenablog.com/entry/2016/11/08/221035"}