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. fetch data from table

fetch data from table

Scheduled Pinned Locked Moved Database
sql-serverhelp
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
    senthilmca
    wrote on last edited by
    #1

    hi, i am using MSSQL as my backend, i want to fetch top 3 students from the Student table.Plz help me Senthil

    _ A 2 Replies Last reply
    0
    • S senthilmca

      hi, i am using MSSQL as my backend, i want to fetch top 3 students from the Student table.Plz help me Senthil

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      This was already answered yesterday in other forum have you checked that?

      Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • S senthilmca

        hi, i am using MSSQL as my backend, i want to fetch top 3 students from the Student table.Plz help me Senthil

        A Offline
        A Offline
        Amit Kumar G
        wrote on last edited by
        #3

        use top operator. SELECT TOP 3 from table [order by field]. Please note order by clause is optional and if require use it. Amit

        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