Is there anyone in this statment to exclude anything where total = 0?SELECT gl.Accountid, gl.AccountName, a.accttype, Parent = a.AcctType, a.chartorder, a.debitincrease, je.branchid, total = CASE WHEN a.debitincrease = 1 THEN je.debit - je.credit WHEN a.debitincrease = 0 THEN je.credit - je.debit END, Acctlevel1, AcctLevel2, AcctLevel3, AcctLevel4, AcctLevel5, AcctLevel6, je.journaldateFROM GLJournalEntry je LEFT OUTER JOIN GLAccounts gl ON gl.accountid = je.accountid LEFT OUTER JOIN View_AcctTypesLevels a ON a.AcctType = gl.accounttypeWHERE a.Acctlevel3 <> 'Current Earnings'
Thanks for your time!