here is my code
select sum(IV.total) as total,
IV.sono,
sum(SO.total) as total2
from tblInvoiceDetail as IV
left join tblSO as SO on IV.sono=SO.sono
where IV.sono not in (108428,108368)
group by IV.sono
having sum(SO.total) < sum(IV.total)
order by IV.sono DESC