CS1103/Labs/Lab5/Q4.sql
2022-10-07 00:48:09 -03:00

7 lines
191 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;