DBA Data[Home] [Help]

VIEW: APPS.IMC_STATE_PER_CHART_V

Source

View Text - Preformatted

SELECT country, nvl( state,'Undefined'), count(*) customers from hz_parties WHERE party_type='PERSON' group by country, state order by customers desc
View Text - HTML Formatted

SELECT COUNTRY
, NVL( STATE
, 'UNDEFINED')
, COUNT(*) CUSTOMERS
FROM HZ_PARTIES
WHERE PARTY_TYPE='PERSON' GROUP BY COUNTRY
, STATE ORDER BY CUSTOMERS DESC