Difference between revisions of "HR.COUNTRIES (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| HR.COUNTRIES
 
| HR.COUNTRIES
 +
|- valign="top"
 +
| '''Description
 +
| country table. Contains 25 rows. References with locations table.
 
|-
 
|-
 
|}
 
|}
  
  
 +
=== 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 19:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description
| '''Index
 
 
 
 
|-
 
|-
Line 23: Line 26:
 
| not null
 
| not null
 
|  
 
|  
| COUNTRY_C_ID_PK
+
| Primary key of countries table.
|
 
 
|-
 
|-
 
| COUNTRY_NAME
 
| COUNTRY_NAME
Line 30: Line 32:
 
| null
 
| null
 
|  
 
|  
|  
+
| Country name
|
 
 
|-
 
|-
 
| REGION_ID
 
| REGION_ID
Line 37: Line 38:
 
| null
 
| null
 
|  
 
|  
|  
+
| Region ID for the country. Foreign key to region_id column in the departments table.
|
 
 
|}
 
|}
  
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|-
 +
| COUNTRY_C_ID_PK
 +
| COUNTRY_ID
 +
|}
  
 +
=== Check Constraints ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Check Constraint
 +
| '''Expression
 +
| '''Description
 +
 +
|-
 +
| COUNTRY_ID_NN
 +
| "COUNTRY_ID" IS NOT NULL
 +
|
 +
|}
  
 +
=== 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 55: Line 77:
 
|}
 
|}
  
 
+
=== 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 66: Line 88:
 
| COUNTRY_ID
 
| COUNTRY_ID
 
| COUNTRY_ID
 
| COUNTRY_ID
 +
|}
 +
 +
=== Dependencies ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Reference Type
 +
| '''Object Type
 +
| '''Referencing Object
 +
 +
|-
 +
| Select
 +
| View
 +
| [[OE.CUSTOMERS_VIEW_(view)|OE.CUSTOMERS_VIEW]]
 +
 
|}
 
|}

Revision as of 09:26, 11 February 2010

wikibot

Table HR.COUNTRIES
Description country table. Contains 25 rows. References with locations table.


Columns

Column Data Type Nullable Default Description
COUNTRY_ID CHAR(2) not null Primary key of countries table.
COUNTRY_NAME VARCHAR2(40) null Country name
REGION_ID NUMBER null Region ID for the country. Foreign key to region_id column in the departments table.

Primary Key

Primary Key Columns
COUNTRY_C_ID_PK COUNTRY_ID

Check Constraints

Check Constraint Expression Description
COUNTRY_ID_NN "COUNTRY_ID" IS NOT NULL

Foreign Keys

Relation Column Referenced Column
HR.REGIONS REGION_ID REGION_ID

Detail Tables

Detail Table Column Referencing Column
HR.LOCATIONS COUNTRY_ID COUNTRY_ID

Dependencies

Reference Type Object Type Referencing Object
Select View OE.CUSTOMERS_VIEW