Viewing 15 posts - 3,901 through 3,915 (of 4,820 total)
Jeff Moden (5/30/2014)
May 30, 2014 at 9:52 pm
Jeff, you are absolutely right. I was so focused on the single row return that I lost track of the fact that the other bits were set....
May 30, 2014 at 8:45 pm
ChrisM@Work (5/30/2014)
May 30, 2014 at 9:18 am
ChrisM@Work (5/30/2014)
Hi Steve
That's why it's the second post, and not the first, which I find much easier to figure out than the OP's original code.
FOR XML PATH is now...
May 30, 2014 at 7:45 am
clarmatt73 (5/30/2014)
May 30, 2014 at 6:54 am
ChrisM,
If the original poster needed an explanation of a fairly simple query, somehow, it just doesn't seem likely that they're going to consider FOR XML PATH as something easier to...
May 30, 2014 at 6:50 am
kbhanu15 (5/30/2014)
Hi sgmunson,can you please tell me how you inserted the below code in table format ?
(SELECT 42 AS tMask) AS XThanks
Bhanu
You have to use the word code, surrounded by...
May 30, 2014 at 5:23 am
Luis Cazares (5/29/2014)
This:
WHERE (dbo.TCDaily.Kind <> 'A02') AND (dbo.TCDaily.Kind <> 'J02') AND (dbo.TCDaily.Kind <> 'J04') AND (dbo.TCDaily.Kind <> 'J06')
Is exactly the same as this:
WHERE NOT( (dbo.TCDaily.Kind = 'A02')...
May 29, 2014 at 7:24 pm
wendy elizabeth (5/29/2014)
May 29, 2014 at 4:38 pm
By using OR, you effectively create a series of filters for which ANY ONE comparison being TRUE results in the record passing through into the resultset. Had you...
May 29, 2014 at 3:51 pm
Yes, you were... We would have had to find you and beat you if you didn't.... ;-)...
May 29, 2014 at 2:22 pm
npatel 17252 (5/29/2014)
Why would that where clause not work? Ive used similar ones before :/
Because it's a series of ORs. Your WHERE clause basically says that the Kind...
May 29, 2014 at 2:03 pm
sku370870 (5/29/2014)
I have to admit I have never got into query plans before ... I pressed Ctrl M before running your code and...
May 29, 2014 at 1:54 pm
manssourianm (5/29/2014)
how...
May 29, 2014 at 1:44 pm
manssourianm (5/29/2014)
I tried your code. I had to change it slightly, so I changed the query to:
DECLARE @sql AS varchar(max), @DATES AS varchar(max)
set @sql = ''
set @dates = ''
SELECT...
May 29, 2014 at 1:31 pm
Viewing 15 posts - 3,901 through 3,915 (of 4,820 total)