Overview Tables Views Indexes Constraints Triggers Procedures Functions Packages Sequences Index

OE


Description  Columns  Query  Constraints  Referenced by  Triggers  

OC_ORDERS

Columns

Column Datatype Nullable Insertable Updateable Deletable Comment
ORDER_ID NUMBER(12,0) Y YES YES YES  
ORDER_MODE VARCHAR2(8) Y YES YES YES  
CUSTOMER_REF CUSTOMER_TYP(76) Y YES YES YES  
ORDER_STATUS NUMBER(2,0) Y YES YES YES  
ORDER_TOTAL NUMBER(8,2) Y YES YES YES  
SALES_REP_ID NUMBER(6,0) Y YES YES YES  
ORDER_ITEM_LIST ORDER_ITEM_LIST_TYP(40) Y YES YES YES  

Query

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

Generated by
OraDoclet, Copyright © Oracle Corporation 2005      Last updated: 01.01.2005