Viewing 15 posts - 8,386 through 8,400 (of 10,143 total)
htilburgs (12/8/2009)
I just expand [1], [2] until [31] (for days of month)???
Because this was how we started, but I liked the [1] till [31] to be dynamic.
Or...
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
December 8, 2009 at 7:18 am
htilburgs (12/8/2009)
Like the results from the first answer.
Application123456.......31 MaxUsage
Office2003433000....... x 4
Telebanking232000....... x 3
Erm...this is the result from the...
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
December 8, 2009 at 5:57 am
Hi David
This implies that you can only update one column, of one row, per statement - is this correct or am I missing the point somewhere? If it is the...
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
December 8, 2009 at 5:56 am
That's no good is it! How do you want it to look?
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
December 8, 2009 at 5:41 am
Is this different to your original output?
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
December 8, 2009 at 5:24 am
No problem - read this, it will show you how it's done.
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
December 8, 2009 at 2:36 am
Mohamed Asane (12/7/2009)
only if all the columns are contain the same value..
They are, aren't they?
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
December 8, 2009 at 2:13 am
Britto (12/7/2009)
I am not an expert on Performance tuning. We are using so many views with JOINs in many places, irrespective of table size.
Application is too slow, even though...
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
December 8, 2009 at 2:11 am
jprabha.d (12/7/2009)
say for any dateTime ,the column values seems to be the same..
[MemoryPages MemoryAvailableBytes ProcessorTIme Datetime MemoryPages_1
9.948098824...
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
December 7, 2009 at 9:38 am
How many readings do you have per day?
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
December 7, 2009 at 7:45 am
Britto (12/7/2009)
I am having a doubt regarding the appropriate use of SUB QUERY and JOIN.
Please tell me the usage of these techniques, exact place in SQL query which will give...
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
December 7, 2009 at 6:53 am
CASE WHEN datewritten IS NULL THEN getdate() ELSE @datewritten 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
December 7, 2009 at 6:41 am
The pivot operator requires the new output columns to be described and mapped, but if they are not known at run-time the dynamic sql can be used to create the...
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
December 7, 2009 at 5:39 am
SELECT DISTINCT *
INTO #TABLEB
FROM #TABLEA
SELECT No, Name
INTO #TABLEB
FROM #TABLEA
GROUP BY No, Name
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
December 7, 2009 at 5:13 am
Try this:
SELECT d.*, s.MaxUsage
FROM (
SELECT [Application], [1] AS Day1, [2] AS Day2, [3] AS Day3, [4] AS Day4, [5] AS Day5, [6] AS Day6
FROM
(SELECT [Application], [Lastname], Daynr
FROM...
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
December 7, 2009 at 4:38 am
Viewing 15 posts - 8,386 through 8,400 (of 10,143 total)