Difference between revisions of "HR.JOBS (table)"
(One intermediate revision by the same user not shown) | |||
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.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 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''Description |
− | + | ||
− | + | |- valign="top" | |
− | |- | ||
| JOB_ID | | JOB_ID | ||
| VARCHAR2(10) | | VARCHAR2(10) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Primary key of jobs table. |
− | + | |- valign="top" | |
− | |- | ||
| JOB_TITLE | | JOB_TITLE | ||
| VARCHAR2(35) | | VARCHAR2(35) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | A not null column that shows job title, e.g. AD_VP, FI_ACCOUNTANT |
− | + | |- valign="top" | |
− | |- | ||
| MIN_SALARY | | MIN_SALARY | ||
| NUMBER(6, 0) | | NUMBER(6, 0) | ||
| null | | null | ||
| | | | ||
− | | | + | | Minimum salary for a job title. |
− | + | |- valign="top" | |
− | |- | ||
| MAX_SALARY | | MAX_SALARY | ||
| NUMBER(6, 0) | | NUMBER(6, 0) | ||
| 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 | ||
+ | |- valign="top" | ||
+ | | JOB_ID_PK | ||
+ | | JOB_ID | ||
|} | |} | ||
+ | === Check Constraints === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Check Constraint | ||
+ | | '''Expression | ||
+ | | '''Description | ||
+ | |- valign="top" | ||
+ | | 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" | ||
Line 55: | Line 75: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[HR.EMPLOYEES_(table)|HR.EMPLOYEES]] | | [[HR.EMPLOYEES_(table)|HR.EMPLOYEES]] | ||
| JOB_ID | | JOB_ID | ||
| JOB_ID | | JOB_ID | ||
− | |- | + | |- valign="top" |
| [[HR.JOB_HISTORY_(table)|HR.JOB_HISTORY]] | | [[HR.JOB_HISTORY_(table)|HR.JOB_HISTORY]] | ||
| JOB_ID | | JOB_ID | ||
| JOB_ID | | JOB_ID | ||
|} | |} |
Latest revision as of 06:14, 24 June 2010
wikibot[edit]
Table | HR.JOBS |
Description | jobs table with job titles and salary ranges. Contains 19 rows.
References with employees and job_history table. |
Columns[edit]
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[edit]
Primary Key | Columns |
JOB_ID_PK | JOB_ID |
Check Constraints[edit]
Check Constraint | Expression | Description |
JOB_TITLE_NN | "JOB_TITLE" IS NOT NULL |
Detail Tables[edit]
Detail Table | Column | Referencing Column |
HR.EMPLOYEES | JOB_ID | JOB_ID |
HR.JOB_HISTORY | JOB_ID | JOB_ID |