Viewing 15 posts - 9,091 through 9,105 (of 10,143 total)
Mark Shvarts (12/18/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
December 18, 2008 at 8:06 am
Hi Shaun
Wasn't this a qotd earlier in the year?
INSERT INTO table Default Values
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 18, 2008 at 8:02 am
dhanasekar.palani (12/18/2008)
That is the whole query. You are right it hits the performance. can you give some idea to write in the condition instead as a case statement.
Yep, move 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 18, 2008 at 7:57 am
Can you post the whole statement? It's unlikely that the CASE construct - as you've posted it - will cause much of a performance hit.
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 18, 2008 at 7:45 am
dongadoy (12/18/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
December 18, 2008 at 7:43 am
GilaMonster (12/17/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
December 18, 2008 at 7:29 am
Can you post some sample data please Fred? The link in my sig will explain how to do this.
Many thanks
ChrisM
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 18, 2008 at 6:48 am
Ninja's_RGR'us (12/18/2008)
And there I was thnking you knew everything about everything ;). Now that dream is gone for me.
There I was thinking you dreamed about SQL Server, and all...
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 18, 2008 at 6:45 am
sar_kan25 (12/18/2008)
Some of the records in the table contain null values.
Now i want to write the select 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 18, 2008 at 5:14 am
Join table1 twice...
SELECT...
FROM table2 t2
INNER JOIN table1 y ON y.coulmn3 = t2.column4 AND y.column2='Y'
INNER JOIN table1 n ON n.coulmn3 = t2.column4 AND n.column2='N'
GROUP BY...
If this fails because of the aggregate,...
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 18, 2008 at 4:20 am
bhushanhegde (12/18/2008)
Hi,I dont have rights to create any objects in the data base since that is in production.
I want to do with any sys defined functions....is it possible?
Yes.
DECLARE @TargetString VARCHAR(100),...
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 18, 2008 at 1:57 am
Thank you for the prompt answers.
There are several ways to do this, my preference would be a function using a tally-table - are you permitted to add a utility table...
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 18, 2008 at 1:49 am
bhushanhegde (12/18/2008)
Hi,My string is as follows:
'hurrycanecathurrycanecatand dod race'
I want to find out character 'a' how many times occured in the above string.
pls help me.
What have you tried so far?
How do...
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 18, 2008 at 1:38 am
Jeff Moden (12/17/2008)
bnordberg (12/17/2008)
Thanks Chris!that appears functional. Now to tune and see how it works with a few hundred million rows!
Why on Earth do you need to create what is...
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 18, 2008 at 1:21 am
Davor Geci (12/17/2008)
can someone help me with big problem for me, but redicilus problem for a T-SQL programmer?
I have 3 tables:
Table1, Table2, Table3
Table1 is having 100 records...
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 17, 2008 at 3:17 pm
Viewing 15 posts - 9,091 through 9,105 (of 10,143 total)