Hi,
I have a requirement to print top 5 rows in a sequence based on the Priority_key. let's see we have table test_table with 2 columns below
Priority_key Code
1 A2
2 AA
4 A3
9 A1
6 A8
3 AZ
8 AX
The Output I want
1. Order by Priority_key
2. Only first 5 priority rows
Output
Priority_key Code
1 A2
2 AA
3 AZ
4 A3
6 A8
Please help to resolve this, thanks in advance.
