>>selectcount( distinct( casewhen mytable.myfield!=0then myTable.myField end ) ) as TotCount -- thiscount will exclude the 0 orders from the count (asthiscaseis no NULL and NULLis excluded from the count)
> >Yes. This does not give me an error. Thank you!