Database reference - HR

HR -  table columns

All table columns

parentcolumndefinitioncomment
EMPLOYEES_MVEMPLOYEE_ID  NUMBER (6,0)    
EMPLOYEES_MVFIRST_NAME  VARCHAR2 (20)    
EMPLOYEES_MVLAST_NAME  VARCHAR2 (25)    
EMPLOYEES_MVEMAIL  VARCHAR2 (25)    
EMPLOYEES_MVPHONE_NUMBER  VARCHAR2 (20)    
EMPLOYEES_MVHIRE_DATE  DATE   
EMPLOYEES_MVJOB_ID  VARCHAR2 (10)    
EMPLOYEES_MVSALARY  NUMBER (8,2)    
EMPLOYEES_MVCOMMISSION_PCT  NUMBER (2,2)    
EMPLOYEES_MVMANAGER_ID  NUMBER (6,0)    
EMPLOYEES_MVDEPARTMENT_ID  NUMBER (4,0)    
COUNTRIESCOUNTRY_ID  CHAR (2)   Primary key of countries table. 
COUNTRIESCOUNTRY_NAME  VARCHAR2 (40)   Country name (in words) testing 
COUNTRIESREGION_ID  NUMBER  Region ID for the country. Foreign key to region_id column in the departments table. 
DEPARTMENTSDEPARTMENT_ID  NUMBER (4,0)   Primary key column of departments table. 
DEPARTMENTSDEPARTMENT_NAME  VARCHAR2 (30)   A not null column that shows name of a department. Administration, Marketing, Purchasing, Human Resources, Shipping, IT, Executive, Public Relations, Sales, Finance, and Accounting. 
DEPARTMENTSMANAGER_ID  NUMBER (6,0)   Manager_id of a department. Foreign key to employee_id column of employees table. The manager_id column of the employee table references this column. 
DEPARTMENTSLOCATION_ID  NUMBER (4,0)   Location id where a department is located. Foreign key to location_id column of locations table. 
EMPLOYEESEMPLOYEE_ID  NUMBER (6,0)   Primary key of employees table. 
EMPLOYEESFIRST_NAME  VARCHAR2 (20)   First name of the employee. A not null column. 
EMPLOYEESLAST_NAME  VARCHAR2 (25)   Last name of the employee. A not null column. 
EMPLOYEESEMAIL  VARCHAR2 (25)   Email id of the employee 
EMPLOYEESPHONE_NUMBER  VARCHAR2 (20)   Phone number of the employee; includes country code and area code 
EMPLOYEESHIRE_DATE  DATE  Date when the employee started on this job. A not null column. 
EMPLOYEESJOB_ID  VARCHAR2 (10)   Current job of the employee; foreign key to job_id column of the jobs table. A not null column. 
EMPLOYEESSALARY  NUMBER (8,2)   Monthly salary of the employee. Must be greater than zero (enforced by constraint emp_salary_min) 
EMPLOYEESCOMMISSION_PCT  NUMBER (2,2)   Commission percentage of the employee; Only employees in sales department elgible for commission percentage 
EMPLOYEESMANAGER_ID  NUMBER (6,0)   Manager id of the employee; has same domain as manager_id in departments table. Foreign key to employee_id column of employees table. (useful for reflexive joins and CONNECT BY query) 
EMPLOYEESDEPARTMENT_ID  NUMBER (4,0)   Department id where employee works; foreign key to department_id column of the departments table 
HTMLDB_PLAN_TABLESTATEMENT_ID  VARCHAR2 (30)    
HTMLDB_PLAN_TABLEPLAN_ID  NUMBER   
HTMLDB_PLAN_TABLETIMESTAMP  DATE   
HTMLDB_PLAN_TABLEREMARKS  VARCHAR2 (4000)    
HTMLDB_PLAN_TABLEOPERATION  VARCHAR2 (30)    
HTMLDB_PLAN_TABLEOPTIONS  VARCHAR2 (255)    
HTMLDB_PLAN_TABLEOBJECT_NODE  VARCHAR2 (128)    
HTMLDB_PLAN_TABLEOBJECT_OWNER  VARCHAR2 (30)    
HTMLDB_PLAN_TABLEOBJECT_NAME  VARCHAR2 (30)    
HTMLDB_PLAN_TABLEOBJECT_ALIAS  VARCHAR2 (65)    
HTMLDB_PLAN_TABLEOBJECT_INSTANCE  NUMBER   
HTMLDB_PLAN_TABLEOBJECT_TYPE  VARCHAR2 (30)    
HTMLDB_PLAN_TABLEOPTIMIZER  VARCHAR2 (255)    
HTMLDB_PLAN_TABLESEARCH_COLUMNS  NUMBER   
HTMLDB_PLAN_TABLEID  NUMBER   
HTMLDB_PLAN_TABLEPARENT_ID  NUMBER   
HTMLDB_PLAN_TABLEDEPTH  NUMBER   
HTMLDB_PLAN_TABLEPOSITION  NUMBER   
HTMLDB_PLAN_TABLECOST  NUMBER   
HTMLDB_PLAN_TABLECARDINALITY  NUMBER   
HTMLDB_PLAN_TABLEBYTES  NUMBER   
HTMLDB_PLAN_TABLEOTHER_TAG  VARCHAR2 (255)    
HTMLDB_PLAN_TABLEPARTITION_START  VARCHAR2 (255)    
HTMLDB_PLAN_TABLEPARTITION_STOP  VARCHAR2 (255)    
HTMLDB_PLAN_TABLEPARTITION_ID  NUMBER   
HTMLDB_PLAN_TABLEOTHER  LONG   
HTMLDB_PLAN_TABLEDISTRIBUTION  VARCHAR2 (30)    
HTMLDB_PLAN_TABLECPU_COST  NUMBER   
HTMLDB_PLAN_TABLEIO_COST  NUMBER   
HTMLDB_PLAN_TABLETEMP_SPACE  NUMBER   
HTMLDB_PLAN_TABLEACCESS_PREDICATES  VARCHAR2 (4000)    
HTMLDB_PLAN_TABLEFILTER_PREDICATES  VARCHAR2 (4000)    
HTMLDB_PLAN_TABLEPROJECTION  VARCHAR2 (4000)    
HTMLDB_PLAN_TABLETIME  NUMBER   
HTMLDB_PLAN_TABLEQBLOCK_NAME  VARCHAR2 (30)    
JOB_HISTORYEMPLOYEE_ID  NUMBER (6,0)   A not null column in the complex primary key employee_id+start_date. Foreign key to employee_id column of the employee table 
JOB_HISTORYSTART_DATE  DATE  A not null column in the complex primary key employee_id+start_date. Must be less than the end_date of the job_history table. (enforced by constraint jhist_date_interval) 
JOB_HISTORYEND_DATE  DATE  Last day of the employee in this job role. A not null column. Must be greater than the start_date of the job_history table. (enforced by constraint jhist_date_interval) 
JOB_HISTORYJOB_ID  VARCHAR2 (10)   Job role in which the employee worked in the past; foreign key to job_id column in the jobs table. A not null column. 
JOB_HISTORYDEPARTMENT_ID  NUMBER (4,0)   Department id in which the employee worked in the past; foreign key to deparment_id column in the departments table 
JOBSJOB_ID  VARCHAR2 (10)   Primary key of jobs table. 
JOBSJOB_TITLE  VARCHAR2 (35)   A not null column that shows job title, e.g. AD_VP, FI_ACCOUNTANT 
JOBSMIN_SALARY  NUMBER (6,0)   Minimum salary for a job title. 
JOBSMAX_SALARY  NUMBER (6,0)   Maximum salary for a job title 
LOCATIONSLOCATION_ID  NUMBER (4,0)   Primary key of locations table 
LOCATIONSSTREET_ADDRESS  VARCHAR2 (40)   Street address of an office, warehouse, or production site of a company. Contains building number and street name 
LOCATIONSPOSTAL_CODE  VARCHAR2 (12)   Postal code of the location of an office, warehouse, or production site of a company. 
LOCATIONSCITY  VARCHAR2 (30)   A not null column that shows city where an office, warehouse, or production site of a company is located. 
LOCATIONSSTATE_PROVINCE  VARCHAR2 (25)   State or Province where an office, warehouse, or production site of a company is located. 
LOCATIONSCOUNTRY_ID  CHAR (2)   Country where an office, warehouse, or production site of a company is located. Foreign key to country_id column of the countries table. 
REGIONSREGION_ID  NUMBER   
REGIONSREGION_NAME  VARCHAR2 (25)    
RSK_VERTRAGSAGGREGAT_TVERTRAG_ID  VARCHAR2 (30)    
RSK_VERTRAGSAGGREGAT_TCOMMODITY  VARCHAR2 (16)    
RSK_VERTRAGSAGGREGAT_TZEITRASTER  VARCHAR2 (20)    
RSK_VERTRAGSAGGREGAT_TZEITSTEMPEL_VON_LOCAL  DATE   
RSK_VERTRAGSAGGREGAT_TZEITSTEMPEL_BIS_LOCAL  DATE   
RSK_VERTRAGSAGGREGAT_TZEITSTEMPEL_VON_MET  DATE   
RSK_VERTRAGSAGGREGAT_TZEITSTEMPEL_BIS_MET  DATE   
RSK_VERTRAGSAGGREGAT_TREALISIERT  CHAR (1)    
RSK_VERTRAGSAGGREGAT_TPROFIL_COD  VARCHAR2 (4)    
RSK_VERTRAGSAGGREGAT_TVOLUMEN  NUMBER   
RSK_VERTRAGSAGGREGAT_TEINHEIT  VARCHAR2 (4)    
RSK_VERTRAGSAGGREGAT_TARBEITSWERT_EUR  NUMBER   
RSK_VERTRAGSAGGREGAT_TARBEITSPREIS_EUR  NUMBER   
RSK_VERTRAGSAGGREGAT_TANZAHL_STUNDEN_ENERGIE  NUMBER   
RSK_VERTRAGSAGGREGAT_TLEISTUNG_MW  NUMBER   
RSK_VERTRAGSAGGREGAT_TLEISTUNGSWERT_EUR  NUMBER   
RSK_VERTRAGSAGGREGAT_TLEISTUNGSPREIS_EUR  NUMBER   
RSK_VERTRAGSAGGREGAT_TANZAHL_STUNDEN_LEISTUNG  NUMBER   
RSK_VERTRAGSAGGREGAT_TVERTRAGSWERT_EUR  NUMBER   
RSK_VERTRAGSAGGREGAT_TVERTRAGSPREIS_EUR  NUMBER   
RSK_VERTRAGSAGGREGAT_TMARKTWERT_EUR  NUMBER   
RSK_VERTRAGSAGGREGAT_TMARKTPREIS_EUR  NUMBER   
RSK_VERTRAGSAGGREGAT_TVALID_FROM  DATE   
RSK_VERTRAGSAGGREGAT_TVALID_TO  DATE   
EMP_DETAILS_VIEWEMPLOYEE_ID  NUMBER (6,0)    
EMP_DETAILS_VIEWJOB_ID  VARCHAR2 (10)    
EMP_DETAILS_VIEWMANAGER_ID  NUMBER (6,0)    
EMP_DETAILS_VIEWDEPARTMENT_ID  NUMBER (4,0)    
EMP_DETAILS_VIEWLOCATION_ID  NUMBER (4,0)    
EMP_DETAILS_VIEWCOUNTRY_ID  CHAR (2)    
EMP_DETAILS_VIEWFIRST_NAME  VARCHAR2 (20)    
EMP_DETAILS_VIEWLAST_NAME  VARCHAR2 (25)    
EMP_DETAILS_VIEWSALARY  NUMBER (8,2)    
EMP_DETAILS_VIEWCOMMISSION_PCT  NUMBER (2,2)    
EMP_DETAILS_VIEWDEPARTMENT_NAME  VARCHAR2 (30)    
EMP_DETAILS_VIEWJOB_TITLE  VARCHAR2 (35)    
EMP_DETAILS_VIEWCITY  VARCHAR2 (30)    
EMP_DETAILS_VIEWSTATE_PROVINCE  VARCHAR2 (25)    
EMP_DETAILS_VIEWCOUNTRY_NAME  VARCHAR2 (40)    
EMP_DETAILS_VIEWREGION_NAME  VARCHAR2 (25)    
PUBLIC_HR_JOBSJOB_ID  VARCHAR2 (10)    
PUBLIC_HR_JOBSJOB_TITLE  VARCHAR2 (35)    
PUBLIC_HR_JOBSMIN_SALARY  NUMBER (6,0)    
PUBLIC_HR_JOBSMAX_SALARY  NUMBER (6,0)    
SYS_ALL_OBJECTSOWNER  VARCHAR2 (30)    
SYS_ALL_OBJECTSOBJECT_NAME  VARCHAR2 (30)    
SYS_ALL_OBJECTSSUBOBJECT_NAME  VARCHAR2 (30)    
SYS_ALL_OBJECTSOBJECT_ID  NUMBER   
SYS_ALL_OBJECTSDATA_OBJECT_ID  NUMBER   
SYS_ALL_OBJECTSOBJECT_TYPE  VARCHAR2 (19)    
SYS_ALL_OBJECTSCREATED  DATE   
SYS_ALL_OBJECTSLAST_DDL_TIME  DATE   
SYS_ALL_OBJECTSTIMESTAMP  VARCHAR2 (19)    
SYS_ALL_OBJECTSSTATUS  VARCHAR2 (7)    
SYS_ALL_OBJECTSTEMPORARY  VARCHAR2 (1)    
SYS_ALL_OBJECTSGENERATED  VARCHAR2 (1)    
SYS_ALL_OBJECTSSECONDARY  VARCHAR2 (1)   testing 



Documentation generated by SqlSpec