Editing OE.ORDERS (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| OE.ORDERS | | OE.ORDERS | ||
Line 8: | Line 8: | ||
| '''Description | | '''Description | ||
| Contains orders entered by a salesperson as well as over the Web. | | Contains orders entered by a salesperson as well as over the Web. | ||
+ | |- | ||
|} | |} | ||
+ | |||
=== Columns === | === Columns === | ||
Line 18: | Line 20: | ||
| '''Default | | '''Default | ||
| '''Description | | '''Description | ||
− | + | ||
− | |- | + | |- |
| ORDER_ID | | ORDER_ID | ||
| NUMBER(12, 0) | | NUMBER(12, 0) | ||
Line 25: | Line 27: | ||
| | | | ||
| PRIMARY KEY column. | | PRIMARY KEY column. | ||
− | |- | + | |- |
| ORDER_DATE | | ORDER_DATE | ||
| TIMESTAMP(6) WITH LOCAL TIME ZONE | | TIMESTAMP(6) WITH LOCAL TIME ZONE | ||
Line 31: | Line 33: | ||
| | | | ||
| TIMESTAMP WITH LOCAL TIME ZONE column, NOT NULL constraint. | | TIMESTAMP WITH LOCAL TIME ZONE column, NOT NULL constraint. | ||
− | |- | + | |- |
| ORDER_MODE | | ORDER_MODE | ||
| VARCHAR2(8) | | VARCHAR2(8) | ||
Line 37: | Line 39: | ||
| | | | ||
| CHECK constraint. | | CHECK constraint. | ||
− | |- | + | |- |
| CUSTOMER_ID | | CUSTOMER_ID | ||
| NUMBER(6, 0) | | NUMBER(6, 0) | ||
Line 43: | Line 45: | ||
| | | | ||
| | | | ||
− | |- | + | |- |
| ORDER_STATUS | | ORDER_STATUS | ||
| NUMBER(2, 0) | | NUMBER(2, 0) | ||
Line 53: | Line 55: | ||
7: Shipped - special delivery, 8: Shipped - billed, 9: Shipped - payment plan,- | 7: Shipped - special delivery, 8: Shipped - billed, 9: Shipped - payment plan,- | ||
10: Shipped - paid | 10: Shipped - paid | ||
− | |- | + | |- |
| ORDER_TOTAL | | ORDER_TOTAL | ||
| NUMBER(8, 2) | | NUMBER(8, 2) | ||
Line 59: | Line 61: | ||
| | | | ||
| CHECK constraint. | | CHECK constraint. | ||
− | |- | + | |- |
| SALES_REP_ID | | SALES_REP_ID | ||
| NUMBER(6, 0) | | NUMBER(6, 0) | ||
Line 65: | Line 67: | ||
| | | | ||
| References hr.employees.employee_id. | | References hr.employees.employee_id. | ||
− | |- | + | |- |
| PROMOTION_ID | | PROMOTION_ID | ||
| NUMBER(6, 0) | | NUMBER(6, 0) | ||
Line 78: | Line 80: | ||
| '''Primary Key | | '''Primary Key | ||
| '''Columns | | '''Columns | ||
− | |- | + | |- |
| ORDER_PK | | ORDER_PK | ||
| ORDER_ID | | ORDER_ID | ||
Line 89: | Line 91: | ||
| '''Type | | '''Type | ||
| '''Columns | | '''Columns | ||
− | + | ||
− | |- | + | |- |
+ | | ORD_SALES_REP_IX | ||
+ | | | ||
+ | | SALES_REP_ID | ||
+ | |- | ||
| ORD_CUSTOMER_IX | | ORD_CUSTOMER_IX | ||
| | | | ||
| CUSTOMER_ID | | CUSTOMER_ID | ||
− | |- | + | |- |
| ORD_ORDER_DATE_IX | | ORD_ORDER_DATE_IX | ||
| | | | ||
| ORDER_DATE | | ORDER_DATE | ||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 110: | Line 112: | ||
| '''Expression | | '''Expression | ||
| '''Description | | '''Description | ||
− | + | ||
− | |- | + | |- |
| ORDER_CUSTOMER_ID_NN | | ORDER_CUSTOMER_ID_NN | ||
| "CUSTOMER_ID" IS NOT NULL | | "CUSTOMER_ID" IS NOT NULL | ||
| | | | ||
− | |- | + | |- |
| ORDER_DATE_NN | | ORDER_DATE_NN | ||
| "ORDER_DATE" IS NOT NULL | | "ORDER_DATE" IS NOT NULL | ||
| | | | ||
− | |- | + | |- |
| ORDER_MODE_LOV | | ORDER_MODE_LOV | ||
| order_mode in ('direct','online') | | order_mode in ('direct','online') | ||
| | | | ||
− | |- | + | |- |
| ORDER_TOTAL_MIN | | ORDER_TOTAL_MIN | ||
| order_total >= 0 | | order_total >= 0 | ||
Line 135: | Line 137: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- |
| [[OE.CUSTOMERS_(table)|OE.CUSTOMERS]] | | [[OE.CUSTOMERS_(table)|OE.CUSTOMERS]] | ||
| CUSTOMER_ID | | CUSTOMER_ID | ||
| CUSTOMER_ID | | CUSTOMER_ID | ||
− | |- | + | |- |
| [[HR.EMPLOYEES_(table)|HR.EMPLOYEES]] | | [[HR.EMPLOYEES_(table)|HR.EMPLOYEES]] | ||
| SALES_REP_ID | | SALES_REP_ID | ||
Line 152: | Line 154: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- |
| [[OE.ORDER_ITEMS_(table)|OE.ORDER_ITEMS]] | | [[OE.ORDER_ITEMS_(table)|OE.ORDER_ITEMS]] | ||
| ORDER_ID | | ORDER_ID | ||
| ORDER_ID | | ORDER_ID | ||
+ | |} | ||
+ | |||
+ | === Dependencies === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[OE.OC_CORPORATE_CUSTOMERS_(view)|OE.OC_CORPORATE_CUSTOMERS]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[OE.OC_CUSTOMERS_(view)|OE.OC_CUSTOMERS]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[OE.OC_ORDERS_(view)|OE.OC_ORDERS]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[OE.ORDERS_VIEW_(view)|OE.ORDERS_VIEW]] | ||
+ | |||
+ | |- | ||
+ | | Insert | ||
+ | | Trigger | ||
+ | | [[OE.ORDERS_TRG|OE.ORDERS_TRG]] | ||
+ | |||
|} | |} |