Editing HR.LOCATIONS (table)

Jump to: navigation, search

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"
|- valign="top"
+
|-
 
| '''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 20: Line 15:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''PK
 
+
| '''Index
|- valign="top"
+
 +
|-
 
| LOCATION_ID
 
| LOCATION_ID
 
| NUMBER(4, 0)
 
| NUMBER(4, 0)
 
| not null
 
| not null
 
|  
 
|  
| Primary key of locations table
+
| LOC_ID_PK
|- valign="top"
+
|
 +
|-
 
| STREET_ADDRESS
 
| STREET_ADDRESS
 
| VARCHAR2(40)
 
| VARCHAR2(40)
 
| null
 
| null
 
|  
 
|  
| Street address of an office, warehouse, or production site of a company.
+
|  
Contains building number and street name
+
|
|- valign="top"
+
|-
 
| POSTAL_CODE
 
| POSTAL_CODE
 
| VARCHAR2(12)
 
| VARCHAR2(12)
 
| null
 
| null
 
|  
 
|  
| Postal code of the location of an office, warehouse, or production site
+
|  
of a company.
+
|
|- valign="top"
+
|-
 
| CITY
 
| CITY
 
| VARCHAR2(30)
 
| VARCHAR2(30)
 
| not null
 
| not null
 
|  
 
|  
| A not null column that shows city where an office, warehouse, or
+
|  
production site of a company is located.
+
| LOC_CITY_IX
|- valign="top"
+
|-
 
| STATE_PROVINCE
 
| STATE_PROVINCE
 
| VARCHAR2(25)
 
| VARCHAR2(25)
 
| null
 
| null
 
|  
 
|  
| State or Province where an office, warehouse, or production site of a
+
|  
company is located.
+
| LOC_STATE_PROVINCE_IX
|- valign="top"
+
|-
 
| COUNTRY_ID
 
| COUNTRY_ID
 
| CHAR(2)
 
| CHAR(2)
 
| 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
 
|- valign="top"
 
| LOC_ID_PK
 
| LOCATION_ID
 
|}
 
 
=== Indexes ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Index
 
| '''Type
 
| '''Columns
 
 
|- valign="top"
 
| LOC_CITY_IX
 
 
|  
 
|  
| CITY
 
|- valign="top"
 
 
| LOC_COUNTRY_IX
 
| LOC_COUNTRY_IX
|
 
| COUNTRY_ID
 
|- valign="top"
 
| LOC_STATE_PROVINCE_IX
 
|
 
| STATE_PROVINCE
 
 
|}
 
|}
  
=== Check Constraints ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Check Constraint
 
| '''Expression
 
| '''Description
 
  
|- valign="top"
 
| 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 115: Line 69:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
 
+
|- valign="top"
+
|-
 
| [[HR.COUNTRIES_(table)|HR.COUNTRIES]]
 
| [[HR.COUNTRIES_(table)|HR.COUNTRIES]]
 
| COUNTRY_ID
 
| COUNTRY_ID
Line 122: Line 76:
 
|}
 
|}
  
=== 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 128: Line 82:
 
| '''Column
 
| '''Column
 
| '''Referencing Column
 
| '''Referencing Column
 
+
|- valign="top"
+
|-
 
| [[HR.DEPARTMENTS_(table)|HR.DEPARTMENTS]]
 
| [[HR.DEPARTMENTS_(table)|HR.DEPARTMENTS]]
 
| LOCATION_ID
 
| LOCATION_ID
 
| LOCATION_ID
 
| LOCATION_ID
|- valign="top"
+
|-
 
| [[OE.WAREHOUSES_(table)|OE.WAREHOUSES]]
 
| [[OE.WAREHOUSES_(table)|OE.WAREHOUSES]]
 
| LOCATION_ID
 
| LOCATION_ID
 
| LOCATION_ID
 
| LOCATION_ID
 
|}
 
|}

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)