SQL creating task dependents
I am trying to have my query change a task to ready when the determined task is closed. All tasks have a task ID that is specific and specific to the job. Thei are 10 jobs with thei own ID and 100 tasks split across the 10. Select Case When sa.requestid = 123 and sa.status <> 3 Does not exists (select 1 from serviceask sa where sa.requestid = 321 and sa.status in (1,3)) then âreadyâ From tasks sa Than repeat for ever task (sa.requestid ) for every job than else and end. Currentky when one when is try all subsequent tasks turn ready which is bad, This does not fail but is flawed on my query i have ten of those statements built each one has different task ids. So the task that should show ready does but all tasks afterwards do as well. Itâs like when a true occurs it trues all the others and jumps to the end