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

From dbscript Online Help
Jump to: navigation, search
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|-
+
|- valign="top"
 
| '''Table
 
| '''Table
 
| HR.COUNTRIES
 
| HR.COUNTRIES
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| country table. Contains 25 rows. References with locations table.
 
| country table. Contains 25 rows. References with locations table.
|-
 
 
|}
 
|}
 
  
 
=== Columns ===
 
=== Columns ===
Line 20: Line 18:
 
| '''Default
 
| '''Default
 
| '''Description
 
| '''Description
+
 
|-
+
|- valign="top"
 
| COUNTRY_ID
 
| COUNTRY_ID
 
| CHAR(2)
 
| CHAR(2)
Line 27: Line 25:
 
|  
 
|  
 
| Primary key of countries table.
 
| Primary key of countries table.
|-
+
|- valign="top"
 
| COUNTRY_NAME
 
| COUNTRY_NAME
 
| VARCHAR2(40)
 
| VARCHAR2(40)
Line 33: Line 31:
 
|  
 
|  
 
| Country name
 
| Country name
|-
+
|- valign="top"
 
| REGION_ID
 
| REGION_ID
 
| NUMBER
 
| NUMBER
Line 46: Line 44:
 
| '''Primary Key
 
| '''Primary Key
 
| '''Columns
 
| '''Columns
|-
+
|- valign="top"
 
| COUNTRY_C_ID_PK
 
| COUNTRY_C_ID_PK
 
| COUNTRY_ID
 
| COUNTRY_ID
Line 57: Line 55:
 
| '''Expression
 
| '''Expression
 
| '''Description
 
| '''Description
+
 
|-
+
|- valign="top"
 
| COUNTRY_ID_NN
 
| COUNTRY_ID_NN
 
| "COUNTRY_ID" IS NOT NULL
 
| "COUNTRY_ID" IS NOT NULL
Line 70: Line 68:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
+
 
|-
+
|- valign="top"
 
| [[HR.REGIONS_(table)|HR.REGIONS]]
 
| [[HR.REGIONS_(table)|HR.REGIONS]]
 
| REGION_ID
 
| REGION_ID
Line 83: Line 81:
 
| '''Column
 
| '''Column
 
| '''Referencing Column
 
| '''Referencing Column
+
 
|-
+
|- valign="top"
 
| [[HR.LOCATIONS_(table)|HR.LOCATIONS]]
 
| [[HR.LOCATIONS_(table)|HR.LOCATIONS]]
 
| COUNTRY_ID
 
| COUNTRY_ID
Line 97: Line 95:
 
| '''Referencing Object
 
| '''Referencing Object
  
|-
+
|- valign="top"
 
| Select
 
| Select
 
| View
 
| View

Revision as of 06:14, 24 June 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