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. fatch specified no

fatch specified no

Scheduled Pinned Locked Moved Database
question
5 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.
  • M Offline
    M Offline
    MHASSANF
    wrote on last edited by
    #1

    hi how can i fatch specified no of rows starting from some row no. for eg. if i want to fatch records from 5th row to 10th row how can i do it. With Thanks MHF

    K 1 Reply Last reply
    0
    • M MHASSANF

      hi how can i fatch specified no of rows starting from some row no. for eg. if i want to fatch records from 5th row to 10th row how can i do it. With Thanks MHF

      K Offline
      K Offline
      Krish KP
      wrote on last edited by
      #2

      include an autoincrement column. using which this can be done.

      Regards KP

      M 1 Reply Last reply
      0
      • K Krish KP

        include an autoincrement column. using which this can be done.

        Regards KP

        M Offline
        M Offline
        MHASSANF
        wrote on last edited by
        #3

        i want to know this is only way ? is there any sql syntax ( like TOP ) that return specified no of rows ? MHF

        N K 2 Replies Last reply
        0
        • M MHASSANF

          i want to know this is only way ? is there any sql syntax ( like TOP ) that return specified no of rows ? MHF

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          SQL Server 2005 having ROW_NUMBER() function.


          My Website | Ask smart questions

          1 Reply Last reply
          0
          • M MHASSANF

            i want to know this is only way ? is there any sql syntax ( like TOP ) that return specified no of rows ? MHF

            K Offline
            K Offline
            Krish KP
            wrote on last edited by
            #5

            in SQL Server 2000 is not possible., you may try as navaneeth suggesting.

            Regards KP

            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