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 can i sort database

how can i sort database

Scheduled Pinned Locked Moved Database
csharpdatabasequestion
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.
  • A Offline
    A Offline
    ace300
    wrote on last edited by
    #1

    how can i sort data base in c# ty

    L D R 3 Replies Last reply
    0
    • A ace300

      how can i sort data base in c# ty

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      ace300 wrote:

      how can i sort data base in c#

      what do you mean by sorting a database? a database holds tables, in no particular order. And each table holds rows, in no particular order. Getting data out of a database in some sorted way is to be handled by the individual query, not by the database overall. :)

      Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

      1 Reply Last reply
      0
      • A ace300

        how can i sort data base in c# ty

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        I concur with Luc. You don't "sort" a database, you specify that you want the returned data from a query to be "sorted". General SQL syntax: Select Field1, Field2 from Table1 Where ... Order by Field1 The important thing here is the "order by" clause of the select query.

        1 Reply Last reply
        0
        • A ace300

          how can i sort data base in c# ty

          R Offline
          R Offline
          Ravi Sant
          wrote on last edited by
          #4

          Do you mean Indexing? Google it!

          ♫ 99 little bugs in the code, 99 bugs in the code We fix a bug, compile it again 101 little bugs in the code ♫

          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