cjh999777
Programmer
- Aug 13, 2007
- 8
I need some help with this query. I have a table that contains purchase records. This table we can call "Purchases". Within this table I have a column called "ptid" which is related to the client info and there can be multiple records with the same "ptid". There is also a "balance" column. What I need to do is create a query which sums the "balance" column and groups by "ptid". This will give me two colums one will be total balance and the other will be ptid. I then want to delete all of the records in the table that have a total balance of "0.00". I have not had a problem selecting the records and summing the balance column what i cant figure out is how to grab the ptid and then delete all of the records with a blance of 0.00. Can anyone help me out.
Thanks
Thanks