ScrewTurn Wiki
Navigation
Main Page
Random Page
Create a new Page
All Pages
Categories
Administration
File Management
Login/Logout
Language Selection
Your Profile
Create Account
Quick Search
Advanced Search »
Back
History
HR.DEPARTMENTS_(table)
== wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- valign="top" | '''Table''' | HR.DEPARTMENTS |- valign="top" | '''Description''' | Departments table that shows details of departments where employees work. Contains 27 rows; references with locations, employees, and job_history tables. |} === Columns === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Column''' | '''Data Type''' | '''Nullable''' | '''Default''' | '''Description''' |- valign="top" | DEPARTMENT_ID | NUMBER(4, 0) | not null | | Primary key column of departments table. |- valign="top" | DEPARTMENT_NAME | VARCHAR2(30) | not null | | A not null column that shows name of a department. Administration, Marketing, Purchasing, Human Resources, Shipping, IT, Executive, Public Relations, Sales, Finance, and Accounting. |- valign="top" | MANAGER_ID | NUMBER(6, 0) | null | | 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. |- valign="top" | LOCATION_ID | NUMBER(4, 0) | null | | Location id where a department is located. Foreign key to location_id column of locations table. |} === Primary Key === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Primary Key''' | '''Columns''' |- valign="top" | DEPT_ID_PK | DEPARTMENT_ID |} === Indexes === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Index''' | '''Type''' | '''Columns''' |- valign="top" | DEPT_LOCATION_IX | | LOCATION_ID |} === Check Constraints === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Check Constraint''' | '''Expression''' | '''Description''' |- valign="top" | DEPT_NAME_NN | "DEPARTMENT_NAME" IS NOT NULL | |} === Foreign Keys === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Relation''' | '''Column''' | '''Referenced Column''' |- valign="top" | [[HR.LOCATIONS_(table)|HR.LOCATIONS]] | LOCATION_ID | LOCATION_ID |- valign="top" | [[HR.EMPLOYEES_(table)|HR.EMPLOYEES]] | MANAGER_ID | EMPLOYEE_ID |} === Detail Tables === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Detail Table''' | '''Column''' | '''Referencing Column''' |- valign="top" | [[HR.EMPLOYEES_(table)|HR.EMPLOYEES]] | DEPARTMENT_ID | DEPARTMENT_ID |- valign="top" | [[HR.JOB_HISTORY_(table)|HR.JOB_HISTORY]] | DEPARTMENT_ID | DEPARTMENT_ID |}
ScrewTurn Wiki version 2.0.36. Some of the icons created by
FamFamFam
.