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

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| HR.JOBS
 
| HR.JOBS
 +
|- valign="top"
 +
| '''Description
 +
| jobs table with job titles and salary ranges. Contains 19 rows.
 +
References with employees and job_history table.
 
|-
 
|-
 
|}
 
|}
  
  
 +
=== 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 20:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description
| '''Index
 
 
 
 
|-
 
|-
Line 23: Line 27:
 
| not null
 
| not null
 
|  
 
|  
| JOB_ID_PK
+
| Primary key of jobs table.
|
 
 
|-
 
|-
 
| JOB_TITLE
 
| JOB_TITLE
Line 30: Line 33:
 
| not null
 
| not null
 
|  
 
|  
|  
+
| A not null column that shows job title, e.g. AD_VP, FI_ACCOUNTANT
|
 
 
|-
 
|-
 
| MIN_SALARY
 
| MIN_SALARY
Line 37: Line 39:
 
| null
 
| null
 
|  
 
|  
|  
+
| Minimum salary for a job title.
|
 
 
|-
 
|-
 
| MAX_SALARY
 
| MAX_SALARY
Line 44: Line 45:
 
| null
 
| null
 
|  
 
|  
|  
+
| Maximum salary for a job title
|
 
 
|}
 
|}
  
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|-
 +
| JOB_ID_PK
 +
| JOB_ID
 +
|}
  
 +
=== Check Constraints ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Check Constraint
 +
| '''Expression
 +
| '''Description
 +
 +
|-
 +
| JOB_TITLE_NN
 +
| "JOB_TITLE" IS NOT NULL
 +
|
 +
|}
  
 +
=== 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

wikibot

Table HR.JOBS
Description jobs table with job titles and salary ranges. Contains 19 rows.

References with employees and job_history table.


Columns

Column Data Type Nullable Default Description
JOB_ID VARCHAR2(10) not null Primary key of jobs table.
JOB_TITLE VARCHAR2(35) not null A not null column that shows job title, e.g. AD_VP, FI_ACCOUNTANT
MIN_SALARY NUMBER(6, 0) null Minimum salary for a job title.
MAX_SALARY NUMBER(6, 0) null Maximum salary for a job title

Primary Key

Primary Key Columns
JOB_ID_PK JOB_ID

Check Constraints

Check Constraint Expression Description
JOB_TITLE_NN "JOB_TITLE" IS NOT NULL

Detail Tables

Detail Table Column Referencing Column
HR.EMPLOYEES JOB_ID JOB_ID
HR.JOB_HISTORY JOB_ID JOB_ID