Viewing 15 posts - 46 through 60 (of 84 total)
Well Basically I look at Staging.ClaCases and select the NameID for the records your query returned. This will return all the claims that this NameID has.
I focus on the columns...
December 22, 2011 at 11:30 pm
The Query runs. The count is still incorrect but I'm assuming there is still another stage;-)
As for the more efficient inner join, results are lost when compared to the one...
December 22, 2011 at 6:32 am
So far so good, cqv.QuestionDate < it.discoverdate holds for all cases 🙂
December 22, 2011 at 6:12 am
The query returns results however they are incorrect. I had to change the alias cc.QuestionDate to cqv.QuestionDate...The count doesn't seem to take into account cqv.DiscoverDate < it.discoverdate...
December 22, 2011 at 5:48 am
I had a look at your code and I found something that ensures no results will be returned ie AND it.QuestionClassID = cqv.QuestionClassID
it.QuestionClassID will never be the same as cqv.QuestionClassID...
December 22, 2011 at 5:00 am
No results are returned even if I do comment out the where clause...
December 22, 2011 at 4:29 am
The code runs however the entire NoOFSOSCalls remains NULL.
I had to make one change to your code. QuestionDate is from 'cqv' and not from 'it' so I changed the alias...I...
December 22, 2011 at 4:18 am
Your query only yields results when you specify ClaQuestionHistoryID in the select ie
SELECT *
FROM (
SELECT ClaQuestionHistoryID,
...
December 22, 2011 at 3:16 am
Thanks once again for the feedback!!! Hopefully someone will be able to provide some assistance with the dropping of tables question:-)
December 21, 2011 at 7:13 am
I thought of something else and I'd like so feedback if possible. I know very little about stored procedures but could this possibly be used as an alternative to the...
December 21, 2011 at 6:38 am
Thanks for the info!!!
I have two related questions
1)Can I assume dropping tables will free memory as I proceed with the query? After #table_2 is created drop #table_1 etc
2)After each...
December 21, 2011 at 6:25 am
Sure thing.
Select it.*
,(Select --Find the latest ITC Score before the incident took place
...
December 21, 2011 at 6:11 am
Hi,
I was able to achieve the result I needed without the use of a cursor. Thanks again for your advice and your willingness to help.
December 21, 2011 at 12:28 am
Will definitely keep that in mind for future queries:-) Thanks
December 20, 2011 at 11:24 pm
Viewing 15 posts - 46 through 60 (of 84 total)