Viewing 15 posts - 3,016 through 3,030 (of 8,416 total)
Chris Morris-439714 (7/13/2010)
It's great ... but...the order of the output doesn't match the order specified by the OP 😛
Yeah, but the OP got it wrong!
July 13, 2010 at 9:36 am
Eugene Elutin (7/13/2010)
I knew it wouldn't work, however it does look nice (as result of creative thinking
It does indeed look very pretty 😎
I'm going with the upgrade to 2008 and...
July 13, 2010 at 9:24 am
Eugene Elutin (7/13/2010)
You didn't get. It is just a joke! You should: Ha! Ha! Ha! Am I right?
Not entirely, but I can see why you would say that.
Nobody here (except...
July 13, 2010 at 9:21 am
Steve Jones - Editor (7/13/2010)
Nice, Paul. I assume those are provided for testing, or other solutions and not for this problem.
No.
It's overkill and inefficient for what the OP is trying...
July 13, 2010 at 9:10 am
Eugene Elutin (7/13/2010)
Looks like it's work:
Very creative.
Where would the following sort...?
1.4.1
1.4.2
1.5.1
1.5.2
1.22.1
1.23.1
😛
July 13, 2010 at 9:06 am
Chris Morris-439714 (7/13/2010)
This looks to me like a valid sequence with rules - note the position...
July 13, 2010 at 7:27 am
This site has just republished an excellent two-part article by R Barry Young on how to replace cursors in your code:
July 13, 2010 at 6:57 am
skcadavre (7/13/2010)
Paul White NZ (7/13/2010)
Where should 1.2.10 sort, I wonder...?Chris Morris-439714 (7/13/2010)
Or 1.1.3, even...I think the OP specified the location of that.
He did.
I took Chris' post as pointing out that...
July 13, 2010 at 6:40 am
shivanee.chikhalikar (7/13/2010)
But, in master table there is composit key of CustNoCorp and Categoryid. And Category id is the primary key having identity on.
Giving a column the IDENTITY property does not...
July 13, 2010 at 6:36 am
Chris Morris-439714 (7/13/2010)
Paul White NZ (7/13/2010)
Where should 1.2.10 sort, I wonder...?Or 1.1.3, even...
Quite.
July 13, 2010 at 6:21 am
skcadavre (7/13/2010)
You killed both solutions 😛
It's a knack 😉
I'm thinking CHARINDEX, split on the period and sort that way?
That would work (and Chris would provide a recursive CTE solution)
July 13, 2010 at 6:18 am
This one uses a cursor:
DECLARE @temp INTEGER; -- Our random number
DECLARE @dummy INTEGER;
DECLARE curNullAppIDs CURSOR LOCAL
SCROLL DYNAMIC
...
July 13, 2010 at 5:55 am
For comparison purposes, this is one possible row-at-a-time solution:
-- A temporary table for demonstration purposes
CREATE TABLE #EventPersonInfo
(
...
July 13, 2010 at 5:26 am
Viewing 15 posts - 3,016 through 3,030 (of 8,416 total)