Re: Nested Sets and custom sorting
From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 08/04/04
- Next message: Hugo Kornelis: "Re: God help me we're upgrading to SQL.."
- Previous message: Aaron [SQL Server MVP]: "Re: God help me we're upgrading to SQL.."
- In reply to: Mark: "Re: Nested Sets and custom sorting"
- Next in thread: --CELKO--: "Re: Nested Sets and custom sorting"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 4 Aug 2004 10:20:38 -0400
"Mark" <mpluijmaekers@yahoo.com> wrote in message
news:37f9d092.0408032301.15abd4c9@posting.google.com...
>
> -- push when top has subordinates and set lft value
> INSERT INTO #Stack
> SELECT (@current_top + 1), MIN(T1.Nr), @counter, NULL, @level
> FROM #Stack AS S1, @Tree AS T1
> WHERE S1.child = T1.Parent
> AND S1.stack_top = @current_top;
>
Mark,
I'm still a bit confused; how do you get from your Contents table to
this point? Would it be possible for you to post some sample data (in the
form of INSERT statements - just enough to duplicate the problem) and the
complete code you're currently using to populate the tree?
- Next message: Hugo Kornelis: "Re: God help me we're upgrading to SQL.."
- Previous message: Aaron [SQL Server MVP]: "Re: God help me we're upgrading to SQL.."
- In reply to: Mark: "Re: Nested Sets and custom sorting"
- Next in thread: --CELKO--: "Re: Nested Sets and custom sorting"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|