Viewing 15 posts - 8,101 through 8,115 (of 15,381 total)
Sounds like a situation where you might want to consider the ideas from Gail's article about multiple execution paths.
http://sqlinthewild.co.za/index.php/2009/09/15/multiple-execution-paths/%5B/url%5D
June 5, 2013 at 8:38 am
Or use any of the free fake name generators on the interwebz. Here is one I have used in the past, there are plenty of others.
June 5, 2013 at 8:32 am
Kapil, you have been around these forums long enough to know that what you posted as sample data is not the best way to post it. Can you turn that...
June 5, 2013 at 8:00 am
dwain.c (6/4/2013)
SELECT cStudentID, iSchoolYearCode
,IsRepeat=CASE WHEN n<>iSchoolYearCode THEN 1 ELSE 0 END
FROM (
SELECT *
...
June 5, 2013 at 7:55 am
Jeff Moden (6/4/2013)
Brandie Tarvin (6/4/2013)
1) SCREAM really loudly so everyone knows there is a problem.
2) Run out of the building as fast as possible.
3) Update my resume.
4) Job...
June 5, 2013 at 7:50 am
Awesome job posting ddl and sample data!!! This is exactly the right way to post!!!
Here is one way to solve your challenge.
select * ,
case when x.iSchoolYearCode is null then 0...
June 4, 2013 at 2:43 pm
prtk.raval (6/4/2013)
The members like you , lowel and others..are really helping a...
June 4, 2013 at 1:10 pm
GrassHopper (6/4/2013)
June 4, 2013 at 1:01 pm
prtk.raval (6/4/2013)
How can I delete my previous posts for which I got the answer from major member of this forum!
There is no way to delete them. Well, Steve can delete...
June 4, 2013 at 12:56 pm
David.Lester (6/4/2013)
June 4, 2013 at 12:48 pm
In addition to Lowell's excellent explanation I would add that you need to be VERY careful about NOLOCK. Given your question I am assuming you are testing because you have...
June 4, 2013 at 12:06 pm
David.Lester (6/4/2013)
June 4, 2013 at 9:50 am
Your issue is here.
cast(left('pehPErcontrol',8) as datetime),
You are trying to cast the string literal 'pehPErcontrol' instead of the column value to a datetime.
Try this instead.
cast(left(pehPErcontrol, 8) as datetime)
Also be very...
June 4, 2013 at 8:02 am
Viewing 15 posts - 8,101 through 8,115 (of 15,381 total)