Difference between revisions of "HR.LOCATIONS (table)"
Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| HR.LOCATIONS | | HR.LOCATIONS | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Locations table that contains specific address of a specific office, | ||
+ | warehouse, and/or production site of a company. Does not store addresses / | ||
+ | locations of customers. Contains 23 rows; references with the | ||
+ | departments and countries tables. | ||
|- | |- | ||
|} | |} | ||
+ | === 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 22: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''Description |
− | |||
|- | |- | ||
Line 23: | Line 29: | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Primary key of locations table |
− | |||
|- | |- | ||
| STREET_ADDRESS | | STREET_ADDRESS | ||
Line 30: | Line 35: | ||
| null | | null | ||
| | | | ||
− | | | + | | Street address of an office, warehouse, or production site of a company. |
− | + | Contains building number and street name | |
|- | |- | ||
| POSTAL_CODE | | POSTAL_CODE | ||
Line 37: | Line 42: | ||
| null | | null | ||
| | | | ||
− | | | + | | Postal code of the location of an office, warehouse, or production site |
− | + | of a company. | |
|- | |- | ||
| CITY | | CITY | ||
Line 44: | Line 49: | ||
| not null | | not null | ||
| | | | ||
− | | | + | | A not null column that shows city where an office, warehouse, or |
− | + | production site of a company is located. | |
|- | |- | ||
| STATE_PROVINCE | | STATE_PROVINCE | ||
Line 51: | Line 56: | ||
| null | | null | ||
| | | | ||
− | | | + | | State or Province where an office, warehouse, or production site of a |
− | + | company is located. | |
|- | |- | ||
| COUNTRY_ID | | COUNTRY_ID | ||
Line 58: | Line 63: | ||
| null | | null | ||
| | | | ||
+ | | Country where an office, warehouse, or production site of a company is | ||
+ | located. Foreign key to country_id column of the countries table. | ||
+ | |} | ||
+ | |||
+ | === Primary Key === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Primary Key | ||
+ | | '''Columns | ||
+ | |- | ||
+ | | LOC_ID_PK | ||
+ | | LOCATION_ID | ||
+ | |} | ||
+ | |||
+ | === Indexes === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Index | ||
+ | | '''Type | ||
+ | | '''Columns | ||
+ | |||
+ | |- | ||
+ | | LOC_STATE_PROVINCE_IX | ||
| | | | ||
+ | | STATE_PROVINCE | ||
+ | |- | ||
| LOC_COUNTRY_IX | | LOC_COUNTRY_IX | ||
+ | | | ||
+ | | COUNTRY_ID | ||
+ | |- | ||
+ | | LOC_CITY_IX | ||
+ | | | ||
+ | | CITY | ||
|} | |} | ||
+ | === Check Constraints === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Check Constraint | ||
+ | | '''Expression | ||
+ | | '''Description | ||
+ | |||
+ | |- | ||
+ | | LOC_CITY_NN | ||
+ | | "CITY" 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 76: | Line 124: | ||
|} | |} | ||
− | + | === 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" |
Revision as of 08:26, 11 February 2010
Contents
wikibot
Table | HR.LOCATIONS |
Description | Locations table that contains specific address of a specific office,
warehouse, and/or production site of a company. Does not store addresses / locations of customers. Contains 23 rows; references with the departments and countries tables. |
Columns
Column | Data Type | Nullable | Default | Description |
LOCATION_ID | NUMBER(4, 0) | not null | Primary key of locations table | |
STREET_ADDRESS | VARCHAR2(40) | null | Street address of an office, warehouse, or production site of a company.
Contains building number and street name | |
POSTAL_CODE | VARCHAR2(12) | null | Postal code of the location of an office, warehouse, or production site
of a company. | |
CITY | VARCHAR2(30) | not null | A not null column that shows city where an office, warehouse, or
production site of a company is located. | |
STATE_PROVINCE | VARCHAR2(25) | null | State or Province where an office, warehouse, or production site of a
company is located. | |
COUNTRY_ID | CHAR(2) | null | Country where an office, warehouse, or production site of a company is
located. Foreign key to country_id column of the countries table. |
Primary Key
Primary Key | Columns |
LOC_ID_PK | LOCATION_ID |
Indexes
Index | Type | Columns |
LOC_STATE_PROVINCE_IX | STATE_PROVINCE | |
LOC_COUNTRY_IX | COUNTRY_ID | |
LOC_CITY_IX | CITY |
Check Constraints
Check Constraint | Expression | Description |
LOC_CITY_NN | "CITY" IS NOT NULL |
Foreign Keys
Relation | Column | Referenced Column |
HR.COUNTRIES | COUNTRY_ID | COUNTRY_ID |
Detail Tables
Detail Table | Column | Referencing Column |
HR.DEPARTMENTS | LOCATION_ID | LOCATION_ID |
OE.WAREHOUSES | LOCATION_ID | LOCATION_ID |