Welcome Guest, you are in: Login

devio dbscript ScrewTurn Wiki

RSS RSS

Navigation





Search the wiki
»

PoweredBy

Page History: OE ACCOUNT_MANAGERS (view)

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: 2010/06/24 07:59


wikibot

ViewOE.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 TypeObject TypeReferenced Object
SelectTableOE.CUSTOMERS

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.