We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e584e commit 6c89749Copy full SHA for 6c89749
docs/4-language-usage/3-dml-and-sql/1-general/g-3185.md
@@ -37,4 +37,19 @@ select first_name
37
order by salary desc
38
)
39
where rownum <= 5; -- NOSONAR: G-1050 literal is ok for a standalone query
40
+```
41
+
42
+## Example (best)
43
44
+(Assuming you are using Oracle Database 12c or later.)
45
46
+``` sql
47
+select first_name
48
+ ,last_name
49
+ ,salary
50
+ ,hire_date
51
+ ,rank() over (order by salary desc) as salary_rank
52
+ from employees
53
+ order by salary desc
54
+fetch first 5 rows only; -- NOSONAR: G-1050 literal is ok for a standalone query
55
```
0 commit comments