Viewing 15 posts - 9,961 through 9,975 (of 10,143 total)
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 27, 2008 at 8:12 am
antonio.collins (2/14/2008)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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....
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 13, 2008 at 9:56 am
D'oh!:blush:
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 6, 2008 at 10:22 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)...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 6, 2008 at 7:16 am
If not, this will help:
http://www.sqlservercentral.com/Forums/Topic424213-338-1.aspx
😀
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 5, 2008 at 11:30 am
Blair Dee (2/5/2008)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 5, 2008 at 10:56 am
So you're looking to match, one for one, your sales & refunds, and examine what's left?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 5, 2008 at 10:52 am
This looks suspiciously like homework to me! However...here's half of what you need...
DROP TABLE #Widgets
CREATE TABLE #Widgets (TranDate DATETIME, Product VARCHAR(10), quantity INT, value MONEY)
INSERT INTO #Widgets (TranDate, Product, quantity,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 5, 2008 at 10:43 am
Viewing 15 posts - 9,961 through 9,975 (of 10,143 total)