Viewing 15 posts - 6,556 through 6,570 (of 10,143 total)
ByronOne (10/20/2011)
ChrisThat works perfectly!!
Thanks so much...
You're welcome, thanks for the feedback.
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
October 20, 2011 at 9:41 am
Dev @ +91 973 913 6683 (10/20/2011)
I only want to bring back the first instance
This is confusing. How can you guarantee the order of rows in a heap?...
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
October 20, 2011 at 9:32 am
Ninja's_RGR'us (10/20/2011)
Brandie Tarvin (10/20/2011)
And on a more serious note, I need help badly, please. This one has me totally confused and...
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
October 20, 2011 at 8:55 am
This should give you some ideas, Peter.
SELECT
DrugNameString = c.DrugName,
DrugName = x.Item
FROM (
SELECT ClaimID = 123, DrugName = 'Oral Solution Citalopram HBR' UNION ALL
SELECT 124, 'CITALOPRAM TABLETS'...
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
October 20, 2011 at 8:52 am
Blimey! I've only ever found one bug in SQL Server, that was 5 years ago.
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
October 20, 2011 at 7:54 am
Ninja's_RGR'us (10/20/2011)
adlakha.22 (10/20/2011)
@ninjaBut from now i m not investing my time in reading and replying to ur post...
😉
19K+ points. ±5 threads started so far. 3 of them still...
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
October 20, 2011 at 7:47 am
Ninja's_RGR'us (10/20/2011)
Ninja's_RGR'us (10/20/2011)
adlakha.22 (10/20/2011)
I know in b/w 8 hours u r usually....see the posts read them...
its lot of work to do...its very time consuming to read all the posts..
I can...
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
October 20, 2011 at 7:46 am
Ninja's_RGR'us (10/20/2011)
adlakha.22 (10/20/2011)
what should i do? 🙁
Keep working with Chris... as I said I'm not doing 8+ hours of free tuning work here for a single issue. ...
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
October 20, 2011 at 7:26 am
adlakha.22 (10/20/2011)
what should i do? 🙁
Run the tests, post the results.
If there's no significant gain from my last suggestion, a gain which you're happy with, then Remi will take...
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
October 20, 2011 at 7:22 am
Quite possibly Remi, hence the test - but it could be worth it. I'd expect some 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
October 20, 2011 at 6:18 am
Well it's clear that a huge covering index would improve the performance of this query but the cost of maintaining it would be considerable. Here's a compromise.
CREATE NONCLUSTERED INDEX [IX_Testing]...
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
October 20, 2011 at 6:08 am
So each one of the three takes around 40 to 50 seconds?
Last test: add this index, then run each query again, noting the time each query takes to run:
CREATE...
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
October 20, 2011 at 5:21 am
;WITH First_record_set as (
select x.patientid,row_number() over (partition by x.patientid order by x.observationid) as rid,x.observationid,y.code
from xxx x
Inner Join yyy y on x.observationid = y.observationid
where y.code like 'glucose' and o.patientid =...
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
October 20, 2011 at 4:50 am
adlakha.22 (10/20/2011)
@chris-2query which u hv posted, took 58 sec to execte
and select qry executed in 3 sec(Select * from #Orderlines).
Not quite right - let's try again. Here are three...
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
October 20, 2011 at 4:16 am
adlakha.22 (10/20/2011)
No there is no results...only messages indicating number of rows effected..if we execute select * from #orderlines
then rows effected will display
Yes, that's exactly as expected. How long did each...
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
October 20, 2011 at 3:52 am
Viewing 15 posts - 6,556 through 6,570 (of 10,143 total)