select A.* from W_AccidentBaseInfo_PartyMan A
where exists (
              select 1 from (
      select accidentid 
  from W_AccidentBaseInfo_PartyMan 
      group by accidentid
      having count(*)=1
                             ) B
               where A.accidentid = B.accidentid
              )