Overview Tables Views Indexes Constraints Triggers Procedures Functions Packages Sequences Index

HR


Description  Columns  Primary key  Check constraints  Foreign keys  Unique keys  Indexes  Options  Referenced by  Triggers  

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 Datatype Nullable Default value Comment
LOCATION_ID NUMBER(4,0) N   Primary key of locations table
STREET_ADDRESS VARCHAR2(40) Y   Street address of an office, warehouse, or production site of a company. Contains building number and street name
POSTAL_CODE VARCHAR2(12) Y   Postal code of the location of an office, warehouse, or production site of a company.
CITY VARCHAR2(30) N   A not null column that shows city where an office, warehouse, or production site of a company is located.
STATE_PROVINCE VARCHAR2(25) Y   State or Province where an office, warehouse, or production site of a company is located.
COUNTRY_ID CHAR(2) Y   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

Check constraints

Check constraint Check condition
LOC_CITY_NN "CITY" IS NOT NULL

Foreign keys

Foreign key Referenced table Referenced constraint Delete rule Columns
LOC_C_ID_FK COUNTRIES COUNTRY_C_ID_PK NO ACTION COUNTRY_ID

Indexes

Index Type Uniqueness Columns
LOC_CITY_IX NORMAL NONUNIQUE CITY
LOC_COUNTRY_IX NORMAL NONUNIQUE COUNTRY_ID
LOC_ID_PK NORMAL UNIQUE LOCATION_ID
LOC_STATE_PROVINCE_IX NORMAL NONUNIQUE STATE_PROVINCE

Options

Option Setting
Clustered N
Generated by Oracle N
Index Organized N
Logging Y
Partitioned N
Temporary N
Nested N

Referenced by

Referenced by Constraint
DEPARTMENTS DEPT_LOC_FK


Generated by
OraDoclet, Copyright © Oracle Corporation 2005      Last updated: 01.01.2005