Viewing 15 posts - 16 through 30 (of 47 total)
Yes sir, it is.
April 8, 2011 at 2:12 pm
The COMPLETE code is over 1500 lines long, and a whole lot of it isn't relevant to our conversation. Plus, I can't post it due to intellectual property laws. What...
April 8, 2011 at 10:56 am
No, that's not the whole trigger. Other parts of the trigger just figure out what other variables need to be set to - but they've been in place for a...
April 8, 2011 at 10:24 am
Okay. Here's my actual code. What I'm doing is building an interface between two systems, and I'm setting patient disease indicators in one system based on data received in a...
April 8, 2011 at 8:34 am
Okay. Here's my situation. I have a function that accepts as a parameter a field that is a comma-seperated value. That function returns that data as seperate rows. So, if...
April 8, 2011 at 8:22 am
I thought we fixed that already?
You know what...never mind, this is becoming entirely frustrating. It can stay inefficient.
April 4, 2011 at 11:08 am
I just ran your script and mine on the exact same set of data? I'm confused.
April 4, 2011 at 10:32 am
No, the data still doesn't match up, and I'm getting an extra day out of it.
Yours:
2011-03-01 00:00:00.00011914592186
2011-03-02 00:00:00.000132214219814
2011-03-03 00:00:00.000107165319510
2011-03-04 00:00:00.000000046
Mine:
2011-03-01 00:00:00.0001281475212011
2011-03-02 00:00:00.0001412157191310
2011-03-03 00:00:00.0001121667191415
April 4, 2011 at 8:31 am
Was out of the office over the weekend. I will try your fix. The types just determine whether the event was an orderly or transport event. The only type that...
April 4, 2011 at 8:28 am
I changed the CASE statement for shift because it was reporting times prior to 06:30 as 1st shift - that's actually third shift (first doesn't start until 6:30). It also...
April 1, 2011 at 7:58 am
The data is closer now, but still not quite the same.
Here's how I modified the original code:
DECLARE @startDate datetime;
SET @startDate = '2011-03-01 00:00:00.000';
DECLARE @endDate datetime;
SET @endDate = '2011-03-03 00:00:00.000';
SELECT ...
April 1, 2011 at 7:07 am
Wait, I think I'm on to something. A little more messing around here oughta fix it.
April 1, 2011 at 6:31 am
Hey, I just noticed something. Check out the last field in each of your rows compared to the first field in each of my rows. They match.
April 1, 2011 at 6:29 am
There's going to be an awful lot of it...you sure you want all of it?
There's 700 rows in that time range with the appropriate [type] field that we're looking at...
April 1, 2011 at 6:25 am
Okay, now I'm getting a table back, but the data isn't correct.
From running my clunky procedure for, let's say the first three days of March, I get this:
(Columns are Date,...
April 1, 2011 at 5:53 am
Viewing 15 posts - 16 through 30 (of 47 total)