Viewing 15 posts - 1,186 through 1,200 (of 1,464 total)
reported as spam
April 12, 2017 at 7:58 am
Your problem is that you have not initialised your variables.
DECLARE @body2 NVARCHAR(MAX);
SET @body2 = @body2 + N'"Hello World"';
SELECT @body2; -- Returns...
April 11, 2017 at 11:36 am
Let's start with the CTE (Common Tbale Expression)
Because there is no guarantee that there are no gaps in the value of id in tbl_Client (even if it is an...
April 11, 2017 at 5:04 am
A small tweak to your code will get you what you are looking for
SELECT
data.AcctNum
, data.EffDate
, data.InactiveDate
FROM...
April 10, 2017 at 10:36 pm
In your ORDER BY, you need to
replace ORDER BY CASE WHEN (tc.id %@rownumber) = 0 THEN 1 ELSE (tc.id %@rownumber) END
with ORDER BY CASE WHEN (tc.id...
April 10, 2017 at 1:19 pm
April 10, 2017 at 4:18 am
Here's my shot at the problem using the technique that Luis and I...
April 9, 2017 at 11:57 pm
You are right, my bad, it was bnd_id, not no
I thought it was a...
April 9, 2017 at 12:00 am
April 8, 2017 at 2:16 pm
Please do not cross post.
This post is a duplicate of https://www.sqlservercentral.com/Forums/FindPost1869698.aspx
April 8, 2017 at 1:23 am
April 8, 2017 at 1:21 am
CREATE TABLE #TestData (
SampleTime DATETIME
);
INSERT INTO #TestData ( SampleTime )
VALUES ( '2017-03-27 09:24:00.000' )
, ( '2017-03-27 09:48:00.000' )
, ( '2017-03-27...
April 7, 2017 at 7:22 am
Thank you for the response.
You're SQL code works and I achieve the Running Total...
April 7, 2017 at 5:00 am
Your requirements for filtering the data are quite vague.
The code below will join the data, and return it all. You can tweak the WHERE as needed.
April 7, 2017 at 12:32 am
Viewing 15 posts - 1,186 through 1,200 (of 1,464 total)