Viewing 10 posts - 1 through 11 (of 11 total)
Thank you for the answer.
What you suggest is what I'm doing today, I would like to forbid this kind of method.
Do you have another solution to so the same without...
May 29, 2009 at 9:03 am
Just amazing ! 😉
Working exactly how I expect
You really deserve to be a MVP !!
I'm still questioning myself about the keywords "OVER" and "PARTITION" its really interesting to do this...
April 2, 2009 at 4:13 pm
Hello again,
Thank you again.
In fact "idx" is not an attribute but a column from the table
so I replaced
DENSE_RANK() OVER(ORDER BY data.value('/Document[1]/@idx','int')) AS dr,
by
DENSE_RANK() OVER(ORDER BY ID) AS dr,
and its working...
April 2, 2009 at 1:19 pm
The data from the table are like this:
ID: int, PK auto inc
Data: XML
data sample in attachment
April 2, 2009 at 12:05 pm
Hello back 😉
So about my last reply, I made a mistake when writing back your query and its working but not exactly how I want.
All the xml content are included...
April 2, 2009 at 12:02 pm
Re.
Its not working 🙁
Please look at the attachment to see the outputs.
April 2, 2009 at 8:34 am
Hi Mark
Thank you for this crazy answer 🙂
I never used something so complex, in fact never used "WITH" or "DENSE_RANK"
Let me a few hours to see if its solving...
April 2, 2009 at 7:51 am
Hello again,
I provided in attachmenet a more clear and complet file with my current real situation.
If you need more informations to understand my problem, please feel free to ask me.
Thank...
April 1, 2009 at 10:22 am
Hi Mark,
Thanks for this first answer.
I didn't knew the "root()" function, this is very interesting 🙂
Your solution is working but it's just answering the half of my problem.
First point: Is...
April 1, 2009 at 8:26 am
it seams like the code were trunk
please found here as attachment the full question with code 😉
April 1, 2009 at 7:49 am
Viewing 10 posts - 1 through 11 (of 11 total)