Viewing 15 posts - 916 through 930 (of 3,489 total)
I got it to work, but I flat out cheated. I used Access (which most everyone here hates), but it was the easiest solution for me.
I created a table in...
August 6, 2019 at 10:17 pm
You should be able to do this (create calculated columns) inside SSRS... or are you not using SSRS?
August 5, 2019 at 11:42 pm
Totally forgot about STRING_AGG()
SELECT SUM(Qty) AS Counted
, Article
, STRING_AGG(Color,', ') AS Colors
FROM Things
GROUP BY Article;
August 5, 2019 at 3:55 pm
I don't think so. I couldn't get the concatenation of Colors to work without FOR XML.
SELECT SUM(Qty) AS 'Counted'
, ColorGrp.Article
, ColorGrp.Colors
FROM
(SELECT Article
, STUFF((SELECT ', ' +...
August 5, 2019 at 3:26 pm
Looks like it should be:
WHERE (TYPE <> 35 AND ACCT1 <> 2)
OR (TYPE IN (30, 31) AND ACCT1 = 6)
July 31, 2019 at 1:22 pm
unpivot/normalize, filter, repivot?
July 31, 2019 at 1:35 am
Thanks Des! (I hope that was a hard query... otherwise, I'm in trouble!)
July 29, 2019 at 11:09 pm
Problems like this make me really like normalization. =)
After failing at this several times, this is as far as I've gotten. I'd love to see the right answer, because this...
July 28, 2019 at 10:44 pm
Amen to that! It's a truly awful design. To the OP - performance of queries against a table like this are going to be painfully slow. You should be able...
July 25, 2019 at 9:13 pm
thanks for the head start... I was curious, so I finished it.
SELECT nm.item,
Name = NU.Item
FROM test T
CROSS APPLY SCRIDB.dbo.DelimitedSplit8K(T.name, ';') NM
CROSS APPLY SCRIDB.dbo.DelimitedSplit8K(T.numbers,...
July 25, 2019 at 7:50 pm
You need to help you. Read the articles Chris posted. Create some tables, try out the different options - LEFT JOIN, EXCEPT, NOT IN.
July 25, 2019 at 2:31 pm
I'd probably send a tweet to @psdbatools and see what happens. or #psdbatools
July 21, 2019 at 11:22 pm
Maybe this will help?
https://social.technet.microsoft.com/wiki/contents/articles/1073.robocopy-and-a-few-examples.aspx
July 21, 2019 at 6:08 pm
There's not enough data to test your query, but this is the general pattern and should work:
use tempdb;
GO
CREATE TABLE #ToGive (
GiverID INT,
NumGifts TINYINT,
GiverName VARCHAR(10),
City VARCHAR(15)
);
GO
INSERT INTO #ToGive...
July 21, 2019 at 3:47 am
So what do you really want to do?
Modify the subscription so it changes when the report is delivered? If so, see the "Schedule" section of this article:
July 19, 2019 at 10:05 pm
Viewing 15 posts - 916 through 930 (of 3,489 total)