select monthopened,#ofdefectopened,monthclosed,#ofdefectclosed,,(#ofdefectopened-#ofdefectclosed) as outstanding from the table;
but, I am unable to keep on adding the Previous month outstanding to the next month. Couldn't figure out. If you know please let me know.
Thank you.