Question: For each postal code, how many customers are there, and its total_balance? Report Postal_Code, Num_of_Customers, T_Balance REP ( REP_NUM , LAST_NAME, FIRST_NAME, STREET, CITY, STATE,
For each postal code, how many customers are there, and its total_balance?
Report Postal_Code, Num_of_Customers, T_Balance
REP (REP_NUM, LAST_NAME, FIRST_NAME, STREET, CITY, STATE, POSTAL_CODE, COMMISSION, RATE)
CUSTOMER (CUSTOMER_NUM, CUSTOMER_NAME, STREET, CITY, STATE, POSTAL_CODE, BALANCE, CREDIT_LIMIT, REP_NUM)
ORDERS (ORDER_NUM, ORDER_DATE, CUSTOMER_NUM)
ORDER_LINE (ORDER_NUM, ITEM_NUM, NUM_ORDERED, QUOTED_PRICE)
ITEM (ITEM_NUM, DESCRIPTION, ON_HAND, CATEGORY, STOREHOUSE, PRICE)
Step by Step Solution
3.41 Rating (167 Votes )
There are 3 Steps involved in it
SELECT POSTALCODEcount as NumofCustomerssumBALANCE as TBalance from CU... View full answer
Get step-by-step solutions from verified subject matter experts
