Viewing 15 posts - 1,576 through 1,590 (of 2,171 total)
One reason might be that you are JOINING on varchar and nvarchar?
Which collation do the temporary table use?
June 25, 2007 at 9:11 am
Try
UPDATE
t
SET t.ShortName = w.CODE_VALUE
FROM #TempRecordsToCreate AS t
June 25, 2007 at 8:24 am
I am not sure, but that sorting can be made with
SELECT *
FROM SomeTable
ORDER BY RIGHT(' ' + Col1, 3)
or
SELECT *
FROM SomeTable
ORDER BY LEN(Col1), Col1
June 24, 2007 at 1:15 pm
I don't have to explain why to sort the records this way. It is not my business rule! It belongs to the original poster. Ask him!
June 23, 2007 at 10:29 am
Why should I pray?
I don't know, neither do you, if this routine is going to run twice every minute, or only once a month. Not even on how many records that...
June 23, 2007 at 10:13 am
Jeff, your performance test took about 1.0-1.5 seconds (absolute precise numbers) on my laptop.
I don't think that is bad for 100 000 records...
June 23, 2007 at 3:32 am
I agree with Jeff. Excellent work Bill with both creating a sample set, a clear definition of what you want and also (thumbs up) a complete resultset how you wanted...
June 23, 2007 at 3:29 am
Why didn't you time your complete code posted 6/23/2007 12:12:00 AM?
You only timed the last select, not the "normalization part". Why?
And I can't see somewhere that you actually had...
June 23, 2007 at 3:25 am
No, I am not.
I am just responding to a need that where posted here. I can't tell why he wants to sort the numbers the way he wanted. Maybe it...
June 23, 2007 at 3:23 am
How can you tell?
Are you sure they are not serial numbers? Encrypted values?
We do not simply know and have not enough information to do that assumption.
You are similar to President...
June 22, 2007 at 4:25 pm
Please demonstrate how you would solve this then!
You just can't tell people to "Normalize your table" when you have absolutely no idea what the data represents.
I would have guessed that...
June 22, 2007 at 4:15 pm
How would that help?
Try this
SELECT
StringValue
FROM (
...
June 22, 2007 at 3:55 pm
1) Pass it as XML datatype
2) Pass it as delimeter separated string
3) Wait for SQL Server 2008 (Katmai)
June 22, 2007 at 3:15 pm
June 22, 2007 at 3:09 pm
Also make sure you have another constraint to check for LUHN algorithm.
See here http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=76195 for more information.
June 22, 2007 at 5:52 am
Viewing 15 posts - 1,576 through 1,590 (of 2,171 total)