Difference between revisions of "OE.ACCOUNT MANAGERS (view)"
| Line 3: | Line 3: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- | |- | ||
| − | | ''' | + | | '''View |
| OE.ACCOUNT_MANAGERS | | OE.ACCOUNT_MANAGERS | ||
|- | |- | ||
| Line 9: | Line 9: | ||
| + | === Source === | ||
<pre> | <pre> | ||
CREATE OR REPLACE VIEW OE.ACCOUNT_MANAGERS AS | CREATE OR REPLACE VIEW OE.ACCOUNT_MANAGERS AS | ||
| Line 23: | Line 24: | ||
c.cust_address.state_province) | c.cust_address.state_province) | ||
</pre> | </pre> | ||
| + | |||
| + | === References === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Dependency Type | ||
| + | | '''Object Type | ||
| + | | '''Referenced Object | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | Table | ||
| + | | [[OE.CUSTOMERS_(table)|OE.CUSTOMERS]] | ||
| + | |||
| + | |} | ||
Revision as of 08:27, 11 February 2010
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 |