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. Web Development
  3. ASP.NET
  4. Grouping Items of this same Category

Grouping Items of this same Category

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharpasp-net
4 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.
  • O Offline
    O Offline
    Otekpo Emmanuel
    wrote on last edited by
    #1

    Good day friends! Please I need help in this issue. I have a database made up of Name Section Day of Duty John U. Fishery Monday Andrew S. HR Tuesday Chow C. Mgr Monday Bian H. Coord. Tuesday Hui Zhao APC Wednesday My request is that; if I retrieved the records from database, they should be grouped by Day of Duty and display in this format: Name Section Day of Duty John U. HR Monday Chow C. Mgr Monday Andrew S. HR Tuesday Bian H. Coord. Tuesday Hui Zhao APC Wednesday I tried using Group By SQL statement but to didn't work and I don't know the right keywords to use while searching on google though I have tried. Please can this be achieved? Help please! Am using ASP.Net (VB.Net)

    L 1 Reply Last reply
    0
    • O Otekpo Emmanuel

      Good day friends! Please I need help in this issue. I have a database made up of Name Section Day of Duty John U. Fishery Monday Andrew S. HR Tuesday Chow C. Mgr Monday Bian H. Coord. Tuesday Hui Zhao APC Wednesday My request is that; if I retrieved the records from database, they should be grouped by Day of Duty and display in this format: Name Section Day of Duty John U. HR Monday Chow C. Mgr Monday Andrew S. HR Tuesday Bian H. Coord. Tuesday Hui Zhao APC Wednesday I tried using Group By SQL statement but to didn't work and I don't know the right keywords to use while searching on google though I have tried. Please can this be achieved? Help please! Am using ASP.Net (VB.Net)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try SQL ORDER BY Keyword[^].

      H 1 Reply Last reply
      0
      • L Lost User

        Try SQL ORDER BY Keyword[^].

        H Offline
        H Offline
        Hariharan Baskaran
        wrote on last edited by
        #3

        This is also possible with the linq by using the same order by query.

        L 1 Reply Last reply
        0
        • H Hariharan Baskaran

          This is also possible with the linq by using the same order by query.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          You should tell OP, not me.

          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