Viewing 15 posts - 1 through 15 (of 16 total)
This is the data behind several SSRS reports. The user selects the craft group from a dropdown. If they select the word "ALL", then the SQL would be craft_group <> 'OTHER'. ...
March 19, 2018 at 1:53 pm
Thanks SSCrazy!!! That gives me what I needed. Sorry for not having the data correct. Can't thank you enough!!
January 4, 2017 at 2:24 pm
Yep, you're right. I missed it in the desired results.
January 4, 2017 at 2:19 pm
Thanks for taking the time but MATL is not the min hold so this wouldn't work.
August 20, 2015 at 10:10 am
Thanks ZZartin, that returned the correct results. Now I'll review it and make sure I understand what it's doing. Thanks again, I knew there had to be a...
August 19, 2015 at 1:54 pm
Closer but it's missing job/task 13000188/500. This job has a two holds and because it has another hold beside MATL, it needs to be in the list.
August 19, 2015 at 1:38 pm
Yes I included 13000188/500 because it should be there. It has a NEF hold along with the MATL hold. And because of the NEF hold, it needs to...
August 19, 2015 at 1:27 pm
Thanks for the quick reply but No it's not the desired result. It has jobnbr/task 13510859/525 in the result which should not be there .
August 19, 2015 at 1:18 pm
Hum, instead of a cursor I used a while loop. Was thinking it would be so much simpler if I could do everything in one select statement!
September 18, 2013 at 1:18 pm
Initially this is what I indicated the data should look like.
jobnbr task schstrdt tnbr
12500173 500 09/18/2013 07:30 T00
13502889 500 09/25/2013 08:00 T01
13506023 0 09/20/2013 07:30 T00
13506779 0 09/26/2013 07:30 T01
13506780...
September 18, 2013 at 1:09 pm
As a former supervisor of mine said "the devil is in the details". I forgot about something. The stored procedure may skip weeks but the Tnbr should continue...
September 18, 2013 at 12:04 pm
Correction if schedule start date is 2014-01-12 the tnbr should be T17.
September 18, 2013 at 10:51 am
On second thought that works fine as long as the schedule start date is the current year. But when i run this on a job that has a schedule...
September 18, 2013 at 10:47 am
Viewing 15 posts - 1 through 15 (of 16 total)