Viewing 15 posts - 61 through 75 (of 144 total)
As strange as this sounds, yes, I think. I am working on a report to compare revenue from month to month and the users want to know where they...
April 14, 2008 at 1:27 pm
It works. I didn't add in the calculated column and try that yet but I'm not finding huge performance differences between both methods. Now, I've only timed the...
January 25, 2008 at 3:30 pm
I misspoke. The seconds were off so I am converting to minutes. Same concern exists though.
January 24, 2008 at 4:12 pm
Here is where I'm at:
DECLARE @start_date datetime,
@weeks int
SET @start_date = '10/31/2007'
SELECT @start_date = dateadd(day, 2, dateadd(day, -1 * datepart(weekday, @start_date), @start_date))
SET @weeks = 12
SELECT DATEADD(dd, (n.Num-1) * 7, @start_date)...
January 24, 2008 at 3:11 pm
Another issue I just ran accross and am looking at resolving is that there is another table we use called op_owner. What we do in that table is track...
January 24, 2008 at 2:43 pm
Thanks GSquared. I've got the rep in there now and am just doing some validity checks to see if I agree with the numbers. I am then going...
January 24, 2008 at 2:35 pm
I'll try what you are suggesting on the beginning date. As far as adding the sales_owner do you have any advice on how to do that. I can't...
January 24, 2008 at 1:53 pm
Thanks Mark. That worked. Just had to make one change because in some instances there was no time between calls because of conferencing. Here is the result:
SELECT...
January 17, 2008 at 4:52 pm
Thanks. Based on your input and help, this is what does the trick for the sample data:
SELECT stime.phoneuser,
CAST(AVG(CAST((DATEDIFF(ss, DATEADD(ss, stime.duration_seconds, stime.origdate), etime.origdate))AS DECIMAL(10,2)) /60) AS DECIMAL(10,2))
FROM #avetime stime...
January 16, 2008 at 11:58 pm
By using this revised test data, even when you run the first query from Samuel it is not including everything for Dolan and I can't figure out why.
CREATE TABLE #avetime...
January 15, 2008 at 10:37 pm
Maybe I'm missing something. Did you change the second query? If so, it didn't take. I've tried some different things with it but haven't had any luck...
January 15, 2008 at 4:19 pm
Thanks. This works great. Based on the sample data this does exacltly what I need it to do. Now, to broden the scope a little bit, how...
January 13, 2008 at 11:04 pm
Thanks Mark. For some other applications I may use your solution. For this one I ended up with this, which returns just the records that are out of...
December 27, 2007 at 5:57 pm
Thanks. Actually ended up using the following based on another suggestion. Both work though.
SELECT loginname,
record_date,
CAST(TOA AS decimal(18,1)) AS [Opps in Approach],
app_time AS [Approach Average Time],
app_perc_adv...
December 20, 2007 at 5:08 pm
Viewing 15 posts - 61 through 75 (of 144 total)