You may use below command to limit the query result. Taking on example for SAP table E070, column E070.
The query will list out the latest 8 rows inserted to the E070 table, specifically on TRKORR column.
select TRKORR from SAPSR3.E070 where rownum <= 8; |
------------------------------------------------------------ |
If you want to list the result of the first 8 rows or last 8 rows, you may need to use the ORDER by query. The command will sort the result by ascending or descending order.
SQL> select TRKORR from (select TRKORR from SAPSR3.E070 |
order by TRKORR DESC) where rownum <=8; |
------------------------------------------------------------ |
SQL> select TRKORR from (select TRKORR from SAPSR3.E070 |
order by TRKORR ASC) where rownum <=8; |
------------------------------------------------------------ |
0 comments:
Post a Comment