Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Nested Sets (2003)

    I downloaded the attached mdb from here.
    I understand that ParentID in the P table gets its values from SELECT [MemberID], [MemberName] FROM P;
    but ParentID is not mentioned in the CelkoNestedBOM query so why, in the query output if you put 3 as RootNodeID, does the RequiredQty value for U also take into account the quantities for T, S, R, L, C and A?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Nested Sets (2003)

    For the background about this type of query, see Joe Celko's articles A look at SQL trees and SQL Lessons.

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Nested Sets (2003)

    Thank you Hans <img src=/S/smile.gif border=0 alt=smile width=15 height=15>, plenty of food on the table, let's see if I can digest it <img src=/S/munch.gif border=0 alt=munch width=19 height=17>

Posting Permissions

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