select sum(DocCount) as DocCount,
MAX(convert (int,SignSendDate))as CompleteDate from ArchiveInfos
where docID in( select DocID from DocArchiveItems where InfoID='00000000000000000019') and sourcetype='1'
select sum(isnull(DocCount,0)) as DocCount,
MAX(convert (int,SignSendDate))as CompleteDate from ArchiveInfos
where docID in( select DocID from DocArchiveItems where InfoID='00000000000000000019') and sourcetype='1'