Viewing 15 posts - 1,546 through 1,560 (of 3,500 total)
Don't think you need a new dataset. What you're describing sounds like you need a Matrix on your report.
Group on [Diagnosis Code], then at the intersection, do COUNT().
You...
May 23, 2017 at 12:28 pm
Got Google?
May 20, 2017 at 9:15 pm
Did you look up the differences between DECIMAL, MONEY, and SMALLMONEY?
May 20, 2017 at 7:05 pm
Did you look up the difference between SMALLMONEY and MONEY datatypes? MONEY should work fine.
May 20, 2017 at 5:10 pm
Don't use BETWEEN with Times. use <. >
SELECT *
FROM MyTable
WHERE EventDate < @SomeTime AND EventDate>=DATEADD(minute,-10,@SomeTime)
May 20, 2017 at 6:18 am
What do you consider "unique messages"? Do you mean something like "common sentences"? I would probably use Jeff's splitter function and write the results to at least a temporary table...
May 19, 2017 at 4:19 pm
SELECT TabA.Col1, TablA.Col2, TabA.Col3, TabB.X, TabB.Y
FROM TabA CROSS JOIN TabB
May 18, 2017 at 12:24 am
Explain the logic of how to do it. I don't think it can be done definitively. Say you have a total for two invoices on the same date one is...
May 13, 2017 at 12:18 am
Did you update stats after the upgrade?
May 12, 2017 at 9:39 pm
Something like this?:CREATE TABLE Test(BadData varchar(15));
GO
INSERT INTO Test(BadData) VALUES
('Data0 [2]'), ('Data1 [2602]'),('Data2 [130]');
SELECT BadData
, LTRIM(LEFT(BadData, CHARINDEX('[',BadData,1)-1)) AS Loc
FROM Test;
May 12, 2017 at 7:56 pm
SELECT ... NULL AS ColumnName
FROM MyTable
doesn't work? Got some dummy data we can play with?
May 12, 2017 at 2:46 pm
If the two result sets have a 1:1 relationship, use a JOIN. If the two sets do not overlap, use UNION.
May 11, 2017 at 4:39 pm
DailyDate...
May 11, 2017 at 2:48 pm
Viewing 15 posts - 1,546 through 1,560 (of 3,500 total)