Answered water

  • Thursday, August 02, 2012 7:04 AM
     
     

    I hited 

    select chsuerid, count(*) from issues inner join actions on actions.issueid
    = issues.issueid where chsuserid ='4042'and  refrenceid like'11%' and [Status]='4' and not exists(select 1 from 
    Actions A where A.chsUerID = Actions.chuerID and A.Issueid=actions.issueid and A.Status='5')
    Group by chsuserid  

    my question is 

    Number of complaints closed by employee and reopened.... but
    finally closed by another employee

    status for close it is '4' and for reopened it's ='5'

    how we can jit query for above question please help soon 

All Replies