8 lines
218 B
SQL
8 lines
218 B
SQL
select CUST_STATE as `State`, count(CUST_BALANCE) as `Number of non zero balances`
|
|
from LGCUSTOMER
|
|
where
|
|
CUST_BALANCE != 0
|
|
group by CUST_STATE
|
|
having
|
|
count(CUST_CODE) > 100
|
|
order by count(CUST_CODE); |