Quantcast
Channel: article-stack » DB
Viewing all articles
Browse latest Browse all 10

SQL:How to fetch rows from nth position to mth position

$
0
0
DB2 select * from (select rownumber() over(order by <colName>) as row_num, <colName2> from <table name>) as <alias name> where row_num between 1003 and 1118 with ur Oracle select * from (select rowid as row_num, <colName2> from <table name>) as <alias name> where row_num between 1003 and 1118 Blog this on Blogger Subscribe to the comments [...]

Viewing all articles
Browse latest Browse all 10

Trending Articles