Difference between revisions of "OE.CUSTOMERS (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| OE.CUSTOMERS
 
| OE.CUSTOMERS
 +
|- valign="top"
 +
| '''Description
 +
| Contains customers data either entered by an employee or by the customer
 +
him/herself over the Web.
 
|-
 
|-
 
|}
 
|}
  
  
 +
=== Columns ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 15: Line 20:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description
| '''Index
 
 
 
 
|-
 
|-
Line 23: Line 27:
 
| not null
 
| not null
 
|  
 
|  
| CUSTOMERS_PK
+
| Primary key column.
|
 
 
|-
 
|-
 
| CUST_FIRST_NAME
 
| CUST_FIRST_NAME
Line 30: Line 33:
 
| not null
 
| not null
 
|  
 
|  
|  
+
| NOT NULL constraint.
|
 
 
|-
 
|-
 
| CUST_LAST_NAME
 
| CUST_LAST_NAME
Line 37: Line 39:
 
| not null
 
| not null
 
|  
 
|  
|  
+
| NOT NULL constraint.
| CUST_LNAME_IX
 
 
|-
 
|-
 
| CUST_ADDRESS
 
| CUST_ADDRESS
Line 44: Line 45:
 
| null
 
| null
 
|  
 
|  
|  
+
| Object column of type address_typ.
|
 
 
|-
 
|-
 
| PHONE_NUMBERS
 
| PHONE_NUMBERS
Line 51: Line 51:
 
| null
 
| null
 
|  
 
|  
|  
+
| Varray column of type phone_list_typ
|
 
 
|-
 
|-
 
| NLS_LANGUAGE
 
| NLS_LANGUAGE
 
| VARCHAR2(3)
 
| VARCHAR2(3)
 
| null
 
| null
|
 
 
|  
 
|  
 
|  
 
|  
Line 64: Line 62:
 
| VARCHAR2(30)
 
| VARCHAR2(30)
 
| null
 
| null
|
 
 
|  
 
|  
 
|  
 
|  
Line 72: Line 69:
 
| null
 
| null
 
|  
 
|  
|  
+
| Check constraint.
|
 
 
|-
 
|-
 
| CUST_EMAIL
 
| CUST_EMAIL
Line 80: Line 76:
 
|  
 
|  
 
|  
 
|  
| CUST_EMAIL_IX
 
 
|-
 
|-
 
| ACCOUNT_MGR_ID
 
| ACCOUNT_MGR_ID
Line 86: Line 81:
 
| null
 
| null
 
|  
 
|  
|  
+
| References hr.employees.employee_id.
| CUST_ACCOUNT_MANAGER_IX
 
 
|-
 
|-
 
| CUST_GEO_LOCATION
 
| CUST_GEO_LOCATION
Line 93: Line 87:
 
| null
 
| null
 
|  
 
|  
|  
+
| SDO (spatial) column.
|
 
 
|-
 
|-
 
| DATE_OF_BIRTH
 
| DATE_OF_BIRTH
 
| DATE(7)
 
| DATE(7)
 
| null
 
| null
|
 
 
|  
 
|  
 
|  
 
|  
Line 106: Line 98:
 
| VARCHAR2(20)
 
| VARCHAR2(20)
 
| null
 
| null
|
 
 
|  
 
|  
 
|  
 
|  
Line 113: Line 104:
 
| VARCHAR2(1)
 
| VARCHAR2(1)
 
| null
 
| null
|
 
 
|  
 
|  
 
|  
 
|  
Line 122: Line 112:
 
|  
 
|  
 
|  
 
|  
 +
|}
 +
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|-
 +
| CUSTOMERS_PK
 +
| CUSTOMER_ID
 +
|}
 +
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
 +
 +
|-
 +
| CUST_UPPER_NAME_IX
 +
|
 +
|
 +
|-
 +
| CUST_EMAIL_IX
 +
|
 +
| CUST_EMAIL
 +
|-
 +
| CUST_ACCOUNT_MANAGER_IX
 +
|
 +
| ACCOUNT_MGR_ID
 +
|-
 +
| CUST_LNAME_IX
 
|  
 
|  
 +
| CUST_LAST_NAME
 
|}
 
|}
  
 +
=== Check Constraints ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Check Constraint
 +
| '''Expression
 +
| '''Description
 +
 +
|-
 +
| CUST_FNAME_NN
 +
| "CUST_FIRST_NAME" IS NOT NULL
 +
|
 +
|-
 +
| CUST_LNAME_NN
 +
| "CUST_LAST_NAME" IS NOT NULL
 +
|
 +
|-
 +
| CUSTOMER_CREDIT_LIMIT_MAX
 +
| credit_limit <= 5000
 +
|
 +
|-
 +
| CUSTOMER_ID_MIN
 +
| customer_id > 0
 +
|
 +
|}
  
 
+
=== Foreign Keys ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 139: Line 187:
 
|}
 
|}
  
 
+
=== Detail Tables ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 150: Line 198:
 
| CUSTOMER_ID
 
| CUSTOMER_ID
 
| CUSTOMER_ID
 
| CUSTOMER_ID
 +
|}
 +
 +
=== References ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 +
|-
 +
| Data Type
 +
| Type
 +
| [[OE.CUST_ADDRESS_TYP_(type)|OE.CUST_ADDRESS_TYP]]
 +
 +
|-
 +
| Data Type
 +
| Type
 +
| [[OE.PHONE_LIST_TYP_(type)|OE.PHONE_LIST_TYP]]
 +
 +
|}
 +
 +
=== Dependencies ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Reference Type
 +
| '''Object Type
 +
| '''Referencing Object
 +
 +
|-
 +
| Select
 +
| View
 +
| [[OE.ACCOUNT_MANAGERS_(view)|OE.ACCOUNT_MANAGERS]]
 +
 
|}
 
|}

Revision as of 09:27, 11 February 2010

wikibot

Table OE.CUSTOMERS
Description Contains customers data either entered by an employee or by the customer

him/herself over the Web.


Columns

Column Data Type Nullable Default Description
CUSTOMER_ID NUMBER(6, 0) not null Primary key column.
CUST_FIRST_NAME VARCHAR2(20) not null NOT NULL constraint.
CUST_LAST_NAME VARCHAR2(20) not null NOT NULL constraint.
CUST_ADDRESS OE.CUST_ADDRESS_TYP null Object column of type address_typ.
PHONE_NUMBERS OE.PHONE_LIST_TYP null Varray column of type phone_list_typ
NLS_LANGUAGE VARCHAR2(3) null
NLS_TERRITORY VARCHAR2(30) null
CREDIT_LIMIT NUMBER(9, 2) null Check constraint.
CUST_EMAIL VARCHAR2(30) null
ACCOUNT_MGR_ID NUMBER(6, 0) null References hr.employees.employee_id.
CUST_GEO_LOCATION MDSYS.SDO_GEOMETRY null SDO (spatial) column.
DATE_OF_BIRTH DATE(7) null
MARITAL_STATUS VARCHAR2(20) null
GENDER VARCHAR2(1) null
INCOME_LEVEL VARCHAR2(20) null

Primary Key

Primary Key Columns
CUSTOMERS_PK CUSTOMER_ID

Indexes

Index Type Columns
CUST_UPPER_NAME_IX
CUST_EMAIL_IX CUST_EMAIL
CUST_ACCOUNT_MANAGER_IX ACCOUNT_MGR_ID
CUST_LNAME_IX CUST_LAST_NAME

Check Constraints

Check Constraint Expression Description
CUST_FNAME_NN "CUST_FIRST_NAME" IS NOT NULL
CUST_LNAME_NN "CUST_LAST_NAME" IS NOT NULL
CUSTOMER_CREDIT_LIMIT_MAX credit_limit <= 5000
CUSTOMER_ID_MIN customer_id > 0

Foreign Keys

Relation Column Referenced Column
HR.EMPLOYEES ACCOUNT_MGR_ID EMPLOYEE_ID

Detail Tables

Detail Table Column Referencing Column
OE.ORDERS CUSTOMER_ID CUSTOMER_ID

References

Dependency Type Object Type Referenced Object
Data Type Type OE.CUST_ADDRESS_TYP
Data Type Type OE.PHONE_LIST_TYP

Dependencies

Reference Type Object Type Referencing Object
Select View OE.ACCOUNT_MANAGERS