Viewing 9 posts - 1 through 9 (of 9 total)
Drat. You're right.
Oh well...
:ermm:
February 25, 2014 at 2:42 pm
As proof of the technique, I offer...
DECLARE @TestTable TABLE
(
id INT
,testValue NVARCHAR(10)
,someNumber INT
);
INSERT INTO @testTable
(id, testValue, someNumber)
VALUES
(1, 'First', 10);
INSERT INTO @testTable
(id, testValue, someNumber)
VALUES
(2, 'Second', 3);
INSERT INTO @testTable
(id, testValue, someNumber)
VALUES
(3, 'third',...
February 25, 2014 at 2:19 pm
If she gets any rows, she will get a zero trhough the case statement; that's correct. But if there are no rows she will only get null, and that's what...
February 25, 2014 at 10:05 am
halifaxdal (2/25/2014)
I have an existing query:
SELECT
i.Division,
DocStatus,
...
February 25, 2014 at 9:56 am
mandavli (1/6/2011)
Now I want to call this from stored procedure.
so I have statement
declare @selVal as...
February 19, 2014 at 9:23 am
First off, it is good practice to use meaningful names for your parameters so when you revisit your code next year or someone else does they know what is expected.
That...
February 19, 2014 at 9:22 am
For years I took my vacation at the Pennsic War. A week or ten days in the Middle Ages, no cell phone, no computer, just battles and parties and a...
April 29, 2013 at 7:31 am
I originally learned the technique against SQL Server 2000, and never thought to improve it. Thanks for the suggestion! It's not bad for 25 years or so, but I can...
February 4, 2013 at 1:43 pm
Thank you for pointing that out. I based the holidays on a list from the company where I worked at the time, and they didn't take that one off. It...
February 4, 2013 at 8:18 am
Viewing 9 posts - 1 through 9 (of 9 total)