• SQL Server 2000

    Author
    Topic
    #429455

    In the Northwind sample database, the Employees table has a one-to-many connection showing as a loop. In other words, the Employees table is both the “many” and the “one”. What does that mean?

    Viewing 1 reply thread
    Author
    Replies
    • #1000194

      The “Reports To” field links back to the ID field of another employee.in the same table. The manager is the “one” and his/her subordinates are the “many”.

    • #1000371

      In addition to what Hans mentioned, this is generally called recursion.

      The table is recursive – meaning that it references itself. This is pretty common when dealing with heirarchal relationships in data or code.

    Viewing 1 reply thread
    Reply To: SQL Server 2000

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: