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. Query to find records

Query to find records

Scheduled Pinned Locked Moved Database
databasehelpquestion
4 Posts 2 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
    sirisha guttikonda
    wrote on last edited by
    #1

    hi all i need some help in this query i.e i want to retrieve 5 to 10 records from a table.i don't have identity column in my table for this how can write a query??? can u plz help me.. Thank you

    siri

    V 1 Reply Last reply
    0
    • S sirisha guttikonda

      hi all i need some help in this query i.e i want to retrieve 5 to 10 records from a table.i don't have identity column in my table for this how can write a query??? can u plz help me.. Thank you

      siri

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      hi Please Explain in Detail , or Show us what did you do before you decided to post. We can Help you if you explain in Detail Thanks

      Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

      S 1 Reply Last reply
      0
      • V Vimalsoft Pty Ltd

        hi Please Explain in Detail , or Show us what did you do before you decided to post. We can Help you if you explain in Detail Thanks

        Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

        S Offline
        S Offline
        sirisha guttikonda
        wrote on last edited by
        #3

        hi Currenctly iam displaying top 5 records(latest entered) from a table. now i want to display next five records. this is what i want to do thank you.

        siri

        V 1 Reply Last reply
        0
        • S sirisha guttikonda

          hi Currenctly iam displaying top 5 records(latest entered) from a table. now i want to display next five records. this is what i want to do thank you.

          siri

          V Offline
          V Offline
          Vimalsoft Pty Ltd
          wrote on last edited by
          #4

          What you are Requesting is SQl Paging, try this select top 10 * employees from employees where NOT employee_id IN (select top 10 employee_id from employee) And look at this http://www.petefreitag.com/item/59.cfm[^] or http://www.sqlteam.com/article/whats-after-top[^] And as you can see the above Example and links, requires you to have a Primary key for your table Thanks Hope it helps

          Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

          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