Viewing 15 posts - 9,961 through 9,975 (of 10,144 total)
Hi David
I would use something like this 'cos it's quick...
SELECT X.h_id, MAX(X.l_id), X.ton
FROM #t1 X
INNER JOIN (SELECT h_id, MAX(ton) AS MAXton FROM #t1 GROUP BY h_id) dt
ON dt.h_id...
February 29, 2008 at 8:39 am
Try this, Ryan:
SELECT "Agent Group (Name & #)",
"Application (Name & #)",
"Agent (Name & #)",
"Total Calls",
"Total Talk" / "Total Calls" AS "Average Talk",
"Total Hold" / "Total Calls" AS "Average...
February 29, 2008 at 4:31 am
Confirmed. Can't remember what the message was, but it suggested that something had changed in our firewall!
Funny thing is, each of the three forums (fora?) I spend most time on...
February 27, 2008 at 8:12 am
antonio.collins (2/14/2008)
February 14, 2008 at 1:59 pm
of course, and the best approach I've seen yet in terms of both accuracy and speed is QA batch. But not everybody is prepared to pay for it....
February 14, 2008 at 12:31 pm
Simple CASE:
CASE SalesProb WHEN 0 THEN...
Searched CASE:
CASE WHEN SalesProb = 0 THEN...
Searched CASE is more expensive than simple CASE.
Either way you will need a column assignment:
,NewColumn = CASE...END
or
,CASE...END...
February 13, 2008 at 9:56 am
Here's a couple of ideas.
DECLARE @Now DATETIME
SET @Now = GETDATE()
SELECT @Now
SELECT CAST(datepart(yy, @Now) AS CHAR(4)) +
RIGHT('0'+LTRIM(cast(datepart(mm, @Now) as VARCHAR(2))), 2) +
RIGHT('0'+LTRIM(cast(datepart(dd, @Now) as VARCHAR(2))), 2) +
RIGHT('0'+LTRIM(cast(datepart(hh, @Now)...
February 6, 2008 at 10:21 am
Blair
Two minuses like this flags the rest of the line as a comment.
Peso's solution is a perfect and extremely elegant solution to the problem as originally described - does...
February 6, 2008 at 9:02 am
Karthik
No locks will be held.
Until you do something. What do you want to do with the tables? SELECT? UPDATE? INSERT?
Enter "Isolation level" (without the double quotes) into the search tab...
February 6, 2008 at 8:58 am
jcrawf02 (2/6/2008)
Because we just have to be different. I'm going to go get my 'twelve barley-corns, round and dried' to measure something now . . .
Nah, pretty sure it...
February 6, 2008 at 8:07 am
jcrawf02 (2/6/2008)
why am I getting times in the result for all of these, when I want only the date portion?
Curious - can you post what you've tried, with the results?
February 6, 2008 at 7:16 am
February 5, 2008 at 11:30 am
Blair Dee (2/5/2008)
February 5, 2008 at 10:56 am
So you're looking to match, one for one, your sales & refunds, and examine what's left?
February 5, 2008 at 10:52 am
Viewing 15 posts - 9,961 through 9,975 (of 10,144 total)