Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL Between

SQL Between

Scheduled Pinned Locked Moved Database
databaseoraclehelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Socheat Net
    wrote on last edited by
    #1

    Dear All, I Use Oracle DB I would like to ask you that I have one table that has records from 010000000 until 010999999 I want select query only start from 010203000 until 720000 numbers. Please help me

    Socheat

    A N 2 Replies Last reply
    0
    • S Socheat Net

      Dear All, I Use Oracle DB I would like to ask you that I have one table that has records from 010000000 until 010999999 I want select query only start from 010203000 until 720000 numbers. Please help me

      Socheat

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Just add a where condition to your query.

      select ....
      from ...
      where id >= 720000 and id <= 10203000

      Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

      1 Reply Last reply
      0
      • S Socheat Net

        Dear All, I Use Oracle DB I would like to ask you that I have one table that has records from 010000000 until 010999999 I want select query only start from 010203000 until 720000 numbers. Please help me

        Socheat

        N Offline
        N Offline
        Niladri_Biswas
        wrote on last edited by
        #3

        I am presenting two solutions for your problem. 1) What Ashfield has already presented 2)

        SELECT *

        FROM tblName

        WHERE RECORDNUMBER BETWEEN 010203000 and 720000

        ORDER BY RECORDNUMBER ASC

        Hope this helps :)

        Niladri Biswas

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups