Viewing 15 posts - 1,891 through 1,905 (of 3,482 total)
I would check to see that when you're doing an assignment like that, are you returning a single value... Does all the code work as expected?
Normally, I would document this...
June 9, 2016 at 11:25 am
Maybe start by telling us what you think is the logic. Not sure of the question, though... One usually starts with a question about what one wants to see...
June 9, 2016 at 10:53 am
In Crystal Reports, when adding parameters, it allowed you to easily display a description field with the parameter field value.
For example, I could display the project name with the project...
June 6, 2016 at 9:03 pm
Since you're kinda new here, I fixed your SQL so that it works...
use tempdb;
go
CREATE TABLE ProviderData (PROVIDER_ID CHAR(10),
PATIENT_ID CHAR(10),
CARE_LEVEL CHAR(10),
BEGIN_DT DATETIME,
END_DT DATETIME);
GO
INSERT INTO ProviderData(Provider_ID, Patient_ID, Care_level, Begin_Dt, End_Dt) VALUES...
June 1, 2016 at 9:49 pm
Are you doing this in SSRS? Use a Matrix... does the pivot for you.
May 26, 2016 at 4:58 pm
Yes, because otherwise SSRS will see it as a single long text string. If you're passing it to a stored procedure as a parameter value, then you absolutely need...
May 24, 2016 at 8:51 pm
If you do that, you'll have to parse the values yourself. Try DelimitedSplit8K[/url] and put that in your WHERE clause.
May 24, 2016 at 6:51 pm
Marie,
That's what I was thinking... It's just easier to do this in steps. Then maybe put them all in a stored procedure, if this has to be done more...
May 20, 2016 at 1:14 pm
so write it to a temp table and do a series of updates on it.
May 19, 2016 at 7:08 pm
I tend to validate my design by collecting a list of questions the database has to answer. If I can work through how to design the queries (not necessarily...
May 19, 2016 at 6:12 pm
REPLACE is your friend. =)
May 19, 2016 at 4:22 pm
Hope you're okay with ugly...
SELECT ID
, col
, rn
FROM
(
SELECT ID
, Col
, Prefix
, NumPart
, ROW_NUMBER() OVER (PARTITION BY Prefix ORDER BY NumPart DESC) AS rn
FROM (
SELECT ID
, col
, LEFT(col,1) AS Prefix
, CAST(RIGHT(col,2)...
May 18, 2016 at 10:03 pm
Steve,
See if Kevin Boles has any horror stories that aren't confidential. =)
May 18, 2016 at 10:01 pm
Use a Tally table and a deliberate cross join?
May 18, 2016 at 8:32 pm
Viewing 15 posts - 1,891 through 1,905 (of 3,482 total)