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. How to select 10-15 records?

How to select 10-15 records?

Scheduled Pinned Locked Moved Database
questiontutorial
4 Posts 4 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.
  • F Offline
    F Offline
    FishiFishi
    wrote on last edited by
    #1

    Hello everybody I have a table "Employee" which contains 20 records. i want to select records from 10 to 15. how can I select?

    Regards, Qaiser Nadeem

    P B K 3 Replies Last reply
    0
    • F FishiFishi

      Hello everybody I have a table "Employee" which contains 20 records. i want to select records from 10 to 15. how can I select?

      Regards, Qaiser Nadeem

      P Offline
      P Offline
      phantanagu
      wrote on last edited by
      #2

      You need to make a ID field in Employee table from 1 to 20 Then do this Select * from tblEmployee where ID in [10,15]

      It seem to be a solution or an answer.

      1 Reply Last reply
      0
      • F FishiFishi

        Hello everybody I have a table "Employee" which contains 20 records. i want to select records from 10 to 15. how can I select?

        Regards, Qaiser Nadeem

        B Offline
        B Offline
        Blue_Boy
        wrote on last edited by
        #3

        select * from Employee where [id] >= 10 and id <=15


        I Love SQL

        1 Reply Last reply
        0
        • F FishiFishi

          Hello everybody I have a table "Employee" which contains 20 records. i want to select records from 10 to 15. how can I select?

          Regards, Qaiser Nadeem

          K Offline
          K Offline
          kubben
          wrote on last edited by
          #4

          If you only want 10 of the 20 records you can do select top 10 * from yourtable Ben

          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