June 9, 2005 at 8:26 am
Frank People who can communicate in more than one language truly amaze me. English is my native language (and only language much to my regret) and I often trip/fall over my own words making an arse of myself. So this time will let you slide.
Mike
June 9, 2005 at 8:28 am
Ready for the final solution to be posted??
June 9, 2005 at 8:28 am
C'est pas grave... on l'aime pareils .
June 9, 2005 at 8:49 am
June 9, 2005 at 9:09 am
I think you should really stick to english only .
I'll post the answer under a new thread.
June 9, 2005 at 12:55 pm
How true once upon a time I could speak enough French to order a glass of wine and ask a girl to dance and Gernan to order beer (they do beer so much better than the French) and ask a girl to dance. Anything else was much to academic for me.
June 9, 2005 at 1:00 pm
Hehe. The final explanation has been posted in another thread :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=189202
June 9, 2005 at 6:00 pm
When I wrote: "To me it looks like a ranking function on the 'id' field", I was right, wasn't I?
It's basically...
select id, name, colid, row_number() over (partition by id order by colid) as colid2
from syscolumns
...right? (using SQL2005 syntax)
The @LastID variable was simply the partitioning variable, as was suggested by comparing it to the id field each time.
RobF
Rob Farley
LobsterPot Solutions & Adelaide SQL Server User Group
Company: http://www.lobsterpot.com.au
Blog: http://blogs.lobsterpot.com.au
June 9, 2005 at 8:41 pm
I don't know the yukon syntaxe... but basically it increments colid and reseeds to 1 everytime the id changes.
Viewing 9 posts - 31 through 38 (of 38 total)
You must be logged in to reply to this topic. Login to reply