OE.ACCOUNT MANAGERS (view)

From dbscript Online Help
Revision as of 06:15, 24 June 2010 by Bot (talk | contribs)
Jump to: navigation, search

wikibot

View OE.ACCOUNT_MANAGERS

Source

CREATE OR REPLACE VIEW OE.ACCOUNT_MANAGERS AS 
SELECT          c.account_mgr_id                ACCT_MGR,
                cr.region_id                    REGION,
                c.cust_address.country_id       COUNTRY,
                c.cust_address.state_province   PROVINCE,
                count(*)                        NUM_CUSTOMERS
FROM            customers c, countries cr
WHERE           c.cust_address.country_id = cr.country_id
GROUP BY ROLLUP (c.account_mgr_id,
                 cr.region_id,
                 c.cust_address.country_id,
                 c.cust_address.state_province)

References

Dependency Type Object Type Referenced Object
Select Table OE.CUSTOMERS