I need help by today if possible.
I have a table called TABLE1 containing sourceid, contactno, glno, totalamount
I need to pull all the sourceid where the totalamount =0 for the grouping of contactno and glno.
Here is what I have so far but it keeps erroring out.
select sourceid from tempForARTable3
where (select contactno, glno from tempForARTable3
group by contactno, glno
having sum(totalamount)=0)
oops I forget to say that it is a T-SQL for a vb application. But hopefully someone can help.
I have a table called TABLE1 containing sourceid, contactno, glno, totalamount
I need to pull all the sourceid where the totalamount =0 for the grouping of contactno and glno.
Here is what I have so far but it keeps erroring out.
select sourceid from tempForARTable3
where (select contactno, glno from tempForARTable3
group by contactno, glno
having sum(totalamount)=0)
oops I forget to say that it is a T-SQL for a vb application. But hopefully someone can help.