Viewing 15 posts - 1 through 15 (of 24 total)
Not really. It is a pretty heavy duty procedure and it could cause more problems if the results come out unexpectedly.
I will have to run this process once a month...
January 30, 2012 at 2:16 pm
Thank you. I didn't want to do that but I just kind of have I guess 🙁
I am going to go for the cursor...
At least I don't feel too guilty...
January 30, 2012 at 1:44 pm
Yes, that is correct.
The procedure will use one field from each record of the selected list. and run it to process it.
The table will contain about 100K unique records
January 30, 2012 at 1:21 pm
[AVG_DAYS] = AVG (dateDIFF(DAY,CTR_CREATED,CTR_UPDATED)),
CTR_UPDATED conditions are:
When CTR_UPDATED is not null ; if CTR_UPDATED> then month's upperbound then upperbound
When CTR_UPDATED is not null ; if...
September 9, 2011 at 12:15 pm
Hi Chris,
I just realized a minor problem on the code you sent.
To handle [AVG-DAYS] we said to use when it is current month data CTR_UPDATED will be getdate()
So in...
September 9, 2011 at 7:13 am
Used stored procesure only and worked beutifully.
Performance is excellent.
August 25, 2011 at 8:39 am
Excellent. I will do that.
Never thought of that since I always used views for Crystal reports.
I learned new tricks today, I appreciate that .
August 23, 2011 at 10:40 am
I will display the results in Crystal reports for management.
And they may use it pretty often during each month.
August 23, 2011 at 10:28 am
Thank you very much.
I will have to double check my numbers but this seems to be the solution I was looking for.
If I wanted to create a view for this...
August 23, 2011 at 10:20 am
I have one problem here:
[AVG_DAYS] = AVG (dateDIFF(DAY,CTR_CREATED,CTR_UPDATED)),
How do we handle [AVG-DAYS] when CTR_UPDATED is null ?
when it is current month data CTR_UPDATED will be getdate()
when previous...
August 23, 2011 at 9:31 am
How can I handle AVG_DAYS when is CTR_UPDATED null.
Because if it is nul:
l for the current month we have to use current date time.
...
August 23, 2011 at 9:22 am
It seems like it doesnt like the parenthesis around (#Dates)
August 23, 2011 at 8:43 am
I am getting an error.
Msg 102, Level 15, State 1, Line 36
Incorrect syntax near ')'.
The syntax seems to be correct
August 23, 2011 at 8:06 am
Viewing 15 posts - 1 through 15 (of 24 total)