Viewing 15 posts - 286 through 300 (of 3,475 total)
You can go to the FILTERS section in SSRS and add additional filters for your report. (And add parameters etc). So the "raw" dataset could pull say 100 records, and...
August 19, 2022 at 3:38 am
This is a bit of an odd question. Normally, if you have a date dimension table, you're working in a data warehouse, which means you're usually using either DAX or...
August 18, 2022 at 11:03 pm
Balance is basically a running total of deposits minus a running total of withdrawals. (Well, maybe starting with a monthly balance, because recalculating that all the time from the first...
August 18, 2022 at 3:17 pm
SELECT code, description, code + ' ' + description AS RandomColumn
FROM MyDB1.dbo.Table1
UNION
SELECT code, description, code + ' ' + description AS RandomColumn
FROM MyDB2.dbo.Table3
UNION
SELECT code, description, code +...
August 17, 2022 at 3:16 pm
looks okay if you're talking about the basic design. What did you intend to do with it?
August 14, 2022 at 6:56 pm
Why not a separate table for each?
August 14, 2022 at 1:59 am
that's what I realized a little bit ago.
August 9, 2022 at 2:42 pm
I need all the patient ids returned but no duplicates, only the record that has the highest ProcedureCodeId.
SELECT PatientID, MAX(ProcedureCodeID) AS MaxCodeID
FROM t
GROUP BY PatientID
If you need other columns too,...
August 9, 2022 at 2:05 pm
Use CROSS APPLY to return the first record
SELECT p.PatientID...
ca.ProcedureCodeID
FROM Patient p
CROSS APPLY (SELECT TOP 1 ProcedureCodeID
FROM SomeTable t
WHERE t.PatientID = p.PatientID
ORDER BY <some column>) ca
August 9, 2022 at 1:18 pm
Okay, since you don't want to provide data, we can't help you.
Case closed.
Good luck!
August 8, 2022 at 5:32 pm
What's the [EndDate] that matches with [Created Date] so we know how long a duration is?
If you want useful help, please read and follow the instructions in this article:
August 8, 2022 at 4:25 pm
Can't you just use OR in your WHERE clause and then do the aggregation? I'm not convinced you need a CTE at all.
August 8, 2022 at 2:16 am
Maybe start here - Cathrine Wilhelmsen's tutorial
August 5, 2022 at 3:16 pm
#GotData?
Without a table with some data, it's hard to help.
August 4, 2022 at 10:52 pm
Viewing 15 posts - 286 through 300 (of 3,475 total)