Viewing 15 posts - 6,556 through 6,570 (of 10,144 total)
Hi Peter, I'm running out of time today but here's some notes.
The entire cross apply bit can - and should - be replaced by a string splitter function. This is...
October 20, 2011 at 10:13 am
ByronOne (10/20/2011)
ChrisThat works perfectly!!
Thanks so much...
You're welcome, thanks for the feedback.
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?...
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...
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'...
October 20, 2011 at 8:52 am
Blimey! I've only ever found one bug in SQL Server, that was 5 years ago.
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...
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...
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. ...
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...
October 20, 2011 at 7:22 am
Quite possibly Remi, hence the test - but it could be worth it. I'd expect some improvement.
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]...
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...
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 =...
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...
October 20, 2011 at 4:16 am
Viewing 15 posts - 6,556 through 6,570 (of 10,144 total)