Viewing 15 posts - 16 through 30 (of 84 total)
Thanks very much!!! That was a lot simpler than I thought. Appreciate the help!!!
February 1, 2012 at 6:16 am
Hi Chris,
I've thought over the problem and I've come up with a much simpler solution. I really was overcomplicating the issue. I need to ignore ClaQuestionView altogether.
If we focus on...
February 1, 2012 at 5:44 am
Hi Chris,
Sorry that must have been an error on my part but the data does exist in the tables. Any ClaCaseID in the #ClaCases exists in the #ClaQuestionView.
I'll run the...
January 18, 2012 at 4:38 am
Hi Chris, any feedback on the problem? Thanks
January 18, 2012 at 2:08 am
Works great! Thanks for the alternative method:-)
January 18, 2012 at 1:43 am
There are 0's in the data set when no data was found. The two distinct character lengths are 8 and 1
January 18, 2012 at 12:45 am
@ VIG: Received error message
'Invalid length parameter passed to the LEFT or SUBSTRING function.'
January 18, 2012 at 12:22 am
Thank you both for your help and explanations, appreciate it.
January 17, 2012 at 6:59 am
Cadavre thanks so much for you help!!! Your code is brilliant and very efficient 😀
If you do have time please can you explain the CROSS APPLY, LEN and also why...
January 16, 2012 at 10:52 pm
These are 64 cases out of the 42 000 that need to be defaulted to '01-01-1900' as there is no way of finding out what the correct date should have...
January 16, 2012 at 8:36 am
Sorry I actually have no idea how to get the DDL. I'm pretty new to SQL. When I look at the table design the column has data type varchar(2000) if...
January 16, 2012 at 8:32 am
I think I have found the problem. There are 64 dates that have a problem. These can be defaulted to null. The leading zero disappears when you create the table...
January 16, 2012 at 8:22 am
Thanks for the reply:
I receive the error message: 'Msg 242, Level 16, State 3, Line 1
The conversion of a varchar data type to a datetime data type resulted in an...
January 16, 2012 at 8:01 am
I have joined the #ClaCases and the #ClaQuestionView table via this script:
Select cc.ClaCaseID,cc.NameID,cc.DiscoverDate,cc.QuestionClassID, zz.ClaCaseID,zz.Question,zz.QuestionDate
from #ClaCases cc
LEFT JOIN
(select max(claquestionhistoryid)claquestionhistoryid , ClaCaseID, QuestionClassID, Question, QuestionDate from #ClaQuestionView
where QuestionID =...
January 4, 2012 at 12:21 am
@ ChrisM@Home: I'm extremely sorry for the late reply! I actually completely forgot we were busy with this, used your previous code and moved on to the other problems you...
January 3, 2012 at 4:39 am
Viewing 15 posts - 16 through 30 (of 84 total)