{"Entry":{"collection":"func","key":"dense-rank","name":"dense_rank","aliases":[],"metadata":{"changed_in":["9.4"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.3","group_changed":{"from":"window","to":"aggregate"},"signatures":{"added":["dense_rank ( args ) WITHIN GROUP (ORDER BY sorted_args) → bigint"],"removed":[]},"status":"changed","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"88b681715ef6a14c6372d0d006e20f5a2b8957457bc8d6e8287245733dcdd0f1","first_version":"8.4","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate","window"],"imported_at":"2026-09-27T17:57:28.92476+08:00","last_version":"20","name":"dense_rank","name_key":"dense_rank","position":21013,"present_in":["8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"dense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint","signature_count":2,"slug":"dense-rank","source_rev":"b7bd9cda","summary":"Computes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.","summary_zh":""}},"Definition":{"Collection":"func","Key":"dense-rank","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"dense-rank","SourceRevision":"b7bd9cda","Facts":{"description":"Computes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.","description_html":"Computes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-HYPOTHETICAL-TABLE","file":"functions-aggregate.html","slug":"18"},"group":"aggregate","group_label":"Aggregate Functions","lang":"en","layout":"table-new","pages":["functions-aggregate.html","functions-window.html"],"prose_only":false,"signatures":[{"description":"Computes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.","description_html":"Computes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003edense_rank\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003eargs\u003c/code\u003e\u003c/em\u003e ) \u003ccode class=\"literal\"\u003eWITHIN GROUP\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003esorted_args\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"dense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint","zh_from":""},{"description":"Returns the rank of the current row, without gaps; this function effectively counts peer groups.","description_html":"Returns the rank of the current row, without gaps; this function effectively counts peer groups.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003edense_rank\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"dense_rank () → bigint","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-HYPOTHETICAL-TABLE","file":"functions-aggregate.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"dense-rank","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"dense_rank","Summary":"计算假设行的排名，没有空缺；此函数实际上对同等行组进行计数。","BodyHTML":"计算假设行的排名，没有空缺；此函数实际上对同等行组进行计数。\u003cpre\u003edense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint\u003c/pre\u003e计算假设行的排名，没有空缺；此函数实际上对同等行组进行计数。\u003cpre\u003edense_rank () → bigint\u003c/pre\u003e返回当前行的排名，没有空缺；此函数实际上对同等行组进行计数。","SourceRevision":"1b5ca64c","ContentHash":"b755fdd5e29a707f407e043156be293735dcdfbfea96e57adb5d2f5a716f329e","Payload":{"description_zh":"计算假设行的排名，没有空缺；此函数实际上对同等行组进行计数。","description_zh_html":"计算假设行的排名，没有空缺；此函数实际上对同等行组进行计数。","signatures":[{"description_zh":"计算假设行的排名，没有空缺；此函数实际上对同等行组进行计数。","description_zh_html":"计算假设行的排名，没有空缺；此函数实际上对同等行组进行计数。","returns":"bigint","text":"dense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint","zh_from":"doc"},{"description_zh":"返回当前行的排名，没有空缺；此函数实际上对同等行组进行计数。","description_zh_html":"返回当前行的排名，没有空缺；此函数实际上对同等行组进行计数。","returns":"bigint","text":"dense_rank () → bigint","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"da6f35ca4e9076e9087c2c7bf788e867ad711de6413e7604bfa335de5e5df6d4","Text":"dense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint","Returns":"bigint","Payload":{"description":"Computes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.","description_html":"Computes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003edense_rank\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003eargs\u003c/code\u003e\u003c/em\u003e ) \u003ccode class=\"literal\"\u003eWITHIN GROUP\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003esorted_args\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"dense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"368ab866582902e05a9d570bbf32c0752a021082b2038cf23cc2d3c120c9079e","Text":"dense_rank () → bigint","Returns":"bigint","Payload":{"description":"Returns the rank of the current row, without gaps; this function effectively counts peer groups.","description_html":"Returns the rank of the current row, without gaps; this function effectively counts peer groups.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003edense_rank\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"dense_rank () → bigint","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
