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

SQL:How to fetch starting N rows from a table

$
0
0
DB2 select * from (select rownumber() over(order by <colName>) as row_num, <colName2> from <table name>) as <alias name> where row_num < N+1 with ur Oracle select * from (select rowid as row_num, <colName2> from <table name>) as <alias name> where row_num < N+1 Blog this on Blogger Subscribe to the comments for this post? Share [...]

Viewing all articles
Browse latest Browse all 10

Trending Articles