Results 1 to 3 of 3

Thread: db hierarchy

  1. #1
    Join Date
    May 2006
    Posts
    1

    Unanswered: db hierarchy

    HI!
    I am new in DB so I need some advices for finding the right solution.
    I need to be able to make automatically any join between tables which the user choose and deliver the result.
    is like making an hierarchy between all tables in DB (parent-child) and then making the select statement for the right join.

    if u have any idea about how can I manage this, pls help me.

    thanks a lot!

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    I would start by getting a beginner sql server programming book.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Automatically? You will need to define all your table relationships, and then write code that will will dive into the system tables to find these relationships.

    Not an easy coding challenge.

    I suggest you look for third party software that will do this, as I suspect that you are reinventing the wheel.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •