How can I do it so that when I run this query.
SELECT distinct cus_areacode AS "Area Code", cus_code AS "Number"
FROM CUSTOMER
WHERE cus_areacode = 713 OR cus_areacode = 615;
instead of showing the following.
Area Code Number
713 10015
713 10018
615 10019
615 10017
713 10011
615 10010
615 10016
615 10012
615 10014
615 10013
It may show this.
Area Code Number
615 7
713 3
I tried this
SELECT distinct cus_areacode AS "Area Code", count(cus_code) AS "Number"
FROM CUSTOMER
WHERE cus_areacode = 713 OR cus_areacode = 615;
But it does not work.