Viewing 15 posts - 46 through 60 (of 197 total)
Anyone lurking around this weekend?
November 2, 2008 at 12:24 pm
Here is my initial try at using a cursor but I don't think it is going to work correctly.
I tried it selecting just 2 records into the cursor and it...
October 31, 2008 at 4:18 pm
Because the SP does other things along with inserting a record into a master table, we can't rewrite it. I was initially going to insert only via code but was...
October 31, 2008 at 2:37 pm
SELECT * FROM ptSchedule WHERE EncounterID IS NULL
would be the exact select query.
The exact SP call would be
exec rr_Insert_ptEncounter param1, param2, ...
October 31, 2008 at 2:21 pm
No, I don't want a SP to do it, I already have an SP to insert the records.
Here it some psuedo-code:
for each record in table1 where columnx is null
...
October 31, 2008 at 2:20 pm
Well one not so quick way would be to use a cursor on the table with the null values.
October 31, 2008 at 2:12 pm
Thanks, Lynn, we've got it figured out now.
October 30, 2008 at 11:55 am
GilaMonster (10/30/2008)
MrBaseball34 (10/30/2008)
Well, that doesn't seem to work either.
Please define 'that doesn't seem to work'. Did it throw an error? If so, what error. Does it give incorrect results? If...
October 30, 2008 at 10:24 am
Lynn Pettis (10/30/2008)
Just one thing missing, what should the expected results be based on the test data. Need something to check against.
Yes, same structure.
Desired results:
INSERT INTO ptEncounterEncounterDetail_New ([EncounterID], [EncounterDetailID])...
October 30, 2008 at 10:23 am
Well, that doesn't seem to work either.
We need to build a new ptEncounterEncounterDetail from the EncounterID,
EncounterDetailID combinations where the Migration values are in the
old ptEncounterEncounterDetail (located on RabbitPM_brad)....
October 30, 2008 at 10:04 am
1976 (10/29/2008)
October 29, 2008 at 8:35 am
Ok, here's the final code:
CREATE PROCEDURE [dbo].[rr_Collect_EncounterReport](
@StartDtTm AS DATETIME)
AS
BEGIN
;WITH UniqueDescript(MRN, Description, StartDtTm, EndDtTm)
AS (SELECT DISTINCT MRN, Description, StartDtTm, EndDtTm
...
October 27, 2008 at 12:07 pm
Good job, Seth
I fixed the problem with the CoPays by loading them in the CTEs with the
InsPlan stuff I also fixed it to bring over the SubscriberID so I...
October 27, 2008 at 9:14 am
Garadin (10/24/2008)
October 24, 2008 at 4:13 pm
Viewing 15 posts - 46 through 60 (of 197 total)