Viewing 15 posts - 6,091 through 6,105 (of 10,143 total)
SELECT *
FROM (SELECT ID = 1, somecolumn = '399,243.01' UNION ALL -- YES
SELECT ID = 2, '£399,243.01' UNION ALL -- NO
SELECT ID = 3, '39924301' UNION 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
July 9, 2012 at 5:18 am
Shcherbunov Neil (7/9/2012)
ChrisM@Work (7/9/2012)
Shcherbunov Neil (7/7/2012)
ChrisM@home (7/6/2012)
Not quite - NOEXPAND is the hint to use the view.
Yes, but ONLY if you reference view (not table!) in your query. See code...
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
July 9, 2012 at 5:09 am
Shcherbunov Neil (7/7/2012)
ChrisM@home (7/6/2012)
Not quite - NOEXPAND is the hint to use the view.
Yes, but ONLY if you reference view (not table!) in your query. See code example in start...
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
July 9, 2012 at 2:20 am
zxxz (7/6/2012)
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
July 6, 2012 at 9:17 am
SQL* (7/6/2012)
Merge statement is giving performance difference when We are updating the records using merge vs first delete the desired records then run the merge statement query (it 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
July 6, 2012 at 6:58 am
Nature has a few more years' experience of horror than us.
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
July 6, 2012 at 6:25 am
Jeff Moden (7/6/2012)
GPO (7/3/2012)
Don't suppose that picture of the fish is a veiled reference to poisson?Whatever the case, I'll just bet it scales well. 😛
NOOOOOooooooooo!!!
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
July 6, 2012 at 6:16 am
Shcherbunov Neil (7/6/2012)
1. Why query optimizer resist to use IX_v index so hard?? :blink:
2. Does it all mean that I just CAN'T force...
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
July 6, 2012 at 5:45 am
muthuselvi.devarajan (7/6/2012)
I used case as below but im getting error
select Pay.DetailId, clm.AssetId,
case when Pay.DetailId IS null then isnull(clm.NoteIds,0) else isnull(pay.NoteIds,0)...
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
July 6, 2012 at 4:51 am
a2zwd (7/6/2012)
...I am st
ruck here
So are we. If you really want help with this, then take the time to read the forum etiquette article. It shows you how to post...
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
July 6, 2012 at 4:29 am
Bobby Glover (7/5/2012)
The data types on the tables are not in...
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
July 6, 2012 at 3:41 am
vijayarani87.s (7/6/2012)
Currently my updte statement is updating only for the first metric ID in the lean table
Of course. Only one row from LEAN will be used to update one row...
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
July 6, 2012 at 2:58 am
dwain.c (7/4/2012)
... The fish is just a fish. Poisson would probably be relieved.
That's no ordinary fish Dwain, that's a biggun, it stands out from the crowd - like your...
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
July 6, 2012 at 2:07 am
fawadafr (7/5/2012)
I came up with an easier way:Check this out:
select productcode,
(replace(substring(p2.productname,patindex('%Availability: %',p2.productname)+14,100),'</span>','')) AS Availability
from products
I did, and it fails.
Test it against the sample data. Fix it, then add whatever...
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
July 6, 2012 at 1:56 am
Hi Paul
4 minutes down to 20 seconds is reasonable. Can you post the actual plan with the new indexes in place please? Let's see if there's more room for improvement.
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
July 6, 2012 at 1:48 am
Viewing 15 posts - 6,091 through 6,105 (of 10,143 total)