Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

rownum

SQL ROWNUM how to return rows between a specific range

August 18, 2023 by Tarik

SELECT * from ( select m.*, rownum r from maps006 m ) where r > 49 and r < 101

Categories sql Tags database, oracle, rownum, sql Leave a comment

Rownum in postgresql

January 18, 2023 by Tarik

Postgresql > 8.4 SELECT row_number() OVER (ORDER BY col1) AS i, e.col1, e.col2, … FROM …

Categories postgresql Tags postgresql, row-number, rownum Leave a comment

How to use Oracle ORDER BY and ROWNUM correctly?

December 2, 2022 by Tarik

The where statement gets executed before the order by. So, your desired query is saying “take the first row and then order it by t_stamp desc“. And that is not what you intend. The subquery method is the proper method for doing this in Oracle. If you want a version that works in both servers, … Read more

Categories sql Tags oracle, rownum, sql, sql-order-by Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa