A dashboard asks for the top-performing locations, but two locations have the same qualifying score at the cutoff. Should the list include both, choose one using an approved secondary rule, or present a different number of entries? A database can return an ordered result without deciding which answer the business intends.
Define whether the list selects a fixed number of positions or complete score groups. The acceptance review should include ties at the boundary rather than relying only on sample data where every score is different.
Clarify what top means
Consider a hypothetical operations report ranking locations by an agreed service measure. The owner asks for the top two, while the qualifying scores are 100, 90, 90, and 80. There are two highest score levels but three locations within those levels. A fixed two-location list would answer a different question from including both locations tied at the second score level.
Neither interpretation should be selected silently by a reporting tool. Ask the owner to choose the intended output and, if the list must contain a fixed number of locations, specify the approved treatment of equal scores. The choice may affect presentation and downstream actions, so keep the rule visible in the report definition.
Read ranking functions as different mechanisms
PostgreSQL 18’s window-function documentation distinguishes row numbers from ranks with gaps and dense ranks without gaps. It defines peer groups using the ordering columns. These mechanisms can express different questions; their presence does not tell the application which cutoff policy to adopt.
This is a scoped PostgreSQL reference example, not a guarantee that every target implementation supports identical syntax or defaults. The relevant team should map the approved policy to its actual query and show how the ordering columns affect equal-score groups. A secondary ordering choice should not accidentally erase the very tie group the business intended to preserve.
Use a boundary example the owner can read
The following hypothetical illustration uses the scores already stated. It compares meanings rather than prescribing a query.
| Candidate position | Score | Rank with gaps | Dense rank |
|---|---|---|---|
| First displayed row | 100 | 1 | 1 |
| One of the tied rows | 90 | 2 | 2 |
| Other tied row | 90 | 2 | 2 |
| Following row | 80 | 4 | 3 |
The displayed order between the equal-score candidates needs its own presentation rule if the application cares about it. The table does not award one tied candidate an inherently higher business standing merely because it appears on an earlier line.
Separate ranking from the follow-up action
Suppose the hypothetical report is used to choose a limited number of locations for a review session. Including all tied candidates might exceed that limit, while silently selecting one could conflict with the owner’s intended process. The application should explain how its report rule relates to the separate selection action.
If an approved secondary criterion resolves the limited selection, preserve that criterion and communicate what it means. Do not relabel the resulting selection as evidence that one equal-score location performed better. Conversely, a report that includes all tied locations should not promise a fixed row count unless its definition actually provides one. The review should reconcile both the list and the action it supports.
Compare OceanBase using the same tie policy
OceanBase Database can be evaluated for relational operational data and the reports built from it. Its Oracle and MySQL compatibility positioning does not establish that a report’s ranking query implements the intended business cutoff. Verify the chosen mode, actual query, ordering definition, and supported functions.
MySQL, PostgreSQL, an OceanBase implementation, and other relevant reporting paths should use the same scored examples and approved policy. Compare which candidates are included and how ties are explained before interpreting execution differences. A query returning fewer rows faster may simply be answering a different selection question.
Accept the tied case before the clean demonstration
A bounded proposed review should include equal scores at the cutoff, a case without ties, and the relevant follow-up selection if the application makes one. Record the expected membership and the meaning of any display order. No database queries or operational ranking decisions have been executed for this article.
This is different from making pagination order stable across requests or assessing similarity-search relevance. The issue is the meaning of rank and list membership for equal qualifying values. A clear tie rule makes that meaning reviewable without requiring the business owner to learn window-function syntax or mistake an ordered result for an approved selection policy.
This article is based on documented sources and editorial analysis. Proposed evaluation examples are not independently measured benchmark results.