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. Get Children

Get Children

Scheduled Pinned Locked Moved Database
questiondatabasesql-serversysadmin
2 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.
  • M Offline
    M Offline
    mehrdadc48
    wrote on last edited by
    #1

    Hi, How can I get all children in just one level downer than a parent in hiererchy in SQL Server 2008?

    Best wishes

    A 1 Reply Last reply
    0
    • M mehrdadc48

      Hi, How can I get all children in just one level downer than a parent in hiererchy in SQL Server 2008?

      Best wishes

      A Offline
      A Offline
      April Fans
      wrote on last edited by
      #2

      Typical example, organ area problem. The table name is organ: ID OrganName ParentID 1 A 0 2 a 1 3 b 1 SELECT a.* from organ as a, organ as b where a.ParentID=B.ID The result is: ID OrganName ParentID 2 a 1 3 b 1

      April Comm100 - Leading Live Chat Software Provider

      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