Viewing 15 posts - 2,401 through 2,415 (of 3,957 total)
GilaMonster (12/11/2012)
CptCrusty1 (12/11/2012)
Gail, I once asked you why you're called Gila Monster.
Old story.
Gail
Gila
Notice the letter ordering. Now add a friend with a mild typing problem (typed faster with her...
December 11, 2012 at 6:38 pm
How about something like this?
;WITH Dates AS (
SELECT MyDate='2012-11-01'
UNION ALL SELECT '2012-04-04')
SELECT MyDate
,CASE WHEN DATEPART(month, MyDate) <= 7...
December 11, 2012 at 6:30 pm
Another way using Lynn's test table:
SELECT * FROM #TestTable WHERE CHARINDEX('+', TestStr) > 0
December 11, 2012 at 6:16 pm
Happy to help out!
SELECT UserID
,[White Blood Cell Count]=MAX(CASE LabName WHEN 'White Blood Cell Count' THEN ResultValue END)
,[Red Blood Cell Count]=MAX(CASE LabName WHEN...
December 11, 2012 at 6:13 pm
Between submission of this article and publication, the POC for PNG has been tweaked a little and while doing so I noticed a couple of issues so I will publish...
December 11, 2012 at 6:04 pm
CELKO (12/8/2012)
A lot of critics, but thanks for that! Will try to use your suggestions in my following posts.
Getting toasted by me is a ritual of passage in...
December 10, 2012 at 5:47 pm
dwain.c (11/29/2012)
dplaut 49149 (11/29/2012)
Is there a way to download these examples, copying text out of those scrolling boxes is a pain and carries along formatting code.
Sorry but in this article...
December 10, 2012 at 5:40 pm
Jeff Moden (12/6/2012)
oralinque (12/6/2012)
Jeff - "Data smears" sounds good to me. Regarding the "clear requirements and readily...
December 7, 2012 at 12:29 am
You're welcome!
I note that I neglected to mention mine only works because you happened to already have the clustered index needed to order the QU.
December 6, 2012 at 8:45 pm
We are in the SQL 2008 forum right?
You can try something like the following. It may not be perfect (can't test because I don't have the underlying View_UK_TicketsDetails table)...
December 6, 2012 at 7:14 pm
Jeff Moden (12/6/2012)
I don't believe the following won't be quite as fast as a Quirky Update...
Easy for you to say...
December 6, 2012 at 6:44 pm
Perhaps you're looking for something like this.
CREATE TABLE #Test( string TEXT)
INSERT INTO #Test
VALUES('<ITEM>ABC</ITEM><ITEM>DEF</ITEM><ITEM>GHI</ITEM>')
SELECT Item=item.value('.', 'VARCHAR(10)')
FROM #Test
CROSS APPLY (SELECT CAST(string AS XML)) a(string1)
CROSS APPLY string1.nodes('ITEM') b(item)
DROP TABLE #Test
December 6, 2012 at 6:36 pm
You can try a quirky update (QU).
DECLARE @MachineID INT = 0
,@Pressure FLOAT = 0
UPDATE u WITH(TABLOCKX)
SET Pressure = CASE WHEN Pressure = 0
...
December 6, 2012 at 5:50 pm
Shalinder - Thanks for dropping by and having a read.
Chris - Thanks for the cover. Back now from PNG so I hope to catch up on some earlier promises...
December 5, 2012 at 5:40 pm
UnionAll (11/30/2012)
Dwain - Query works for me, but i don't think i understand what you mean by resolving multiple levels of hierarchy - my ignorance. I always have a...
December 2, 2012 at 1:04 am
Viewing 15 posts - 2,401 through 2,415 (of 3,957 total)