Difference between revisions of "OE.OC CUSTOMERS (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.OC_CUSTOMERS | | OE.OC_CUSTOMERS | ||
|- | |- | ||
Line 9: | Line 9: | ||
+ | === Source === | ||
<pre> | <pre> | ||
CREATE OR REPLACE VIEW OE.OC_CUSTOMERS AS | CREATE OR REPLACE VIEW OE.OC_CUSTOMERS AS | ||
Line 29: | Line 30: | ||
</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.ORDER_ITEMS_(table)|OE.ORDER_ITEMS]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Table | ||
+ | | [[OE.ORDERS_(table)|OE.ORDERS]] | ||
+ | |||
+ | |} |
Revision as of 08:28, 11 February 2010
wikibot
View | OE.OC_CUSTOMERS |
Source
CREATE OR REPLACE VIEW OE.OC_CUSTOMERS AS SELECT c.customer_id, c.cust_first_name, c.cust_last_name, c.cust_address, c.phone_numbers,c.nls_language,c.nls_territory,c.credit_limit, c.cust_email, CAST(MULTISET(SELECT o.order_id, o.order_mode, MAKE_REF(oc_customers,o.customer_id), o.order_status, o.order_total,o.sales_rep_id, CAST(MULTISET(SELECT l.order_id,l.line_item_id, l.unit_price,l.quantity, MAKE_REF(oc_product_information, l.product_id) FROM order_items l WHERE o.order_id = l.order_id) AS order_item_list_typ) FROM orders o WHERE c.customer_id = o.customer_id)
References
Dependency Type | Object Type | Referenced Object |
Select | Table | OE.ORDER_ITEMS |
Select | Table | OE.ORDERS |