|
HR |
||||||||||||
|
|
|||||||||||||
| Description Columns Primary key Check constraints Foreign keys Unique keys Indexes Options Referenced by Triggers |
Description
Departments table that shows details of departments where employees
work. Contains 27 rows; references with locations, employees, and job_history tables.
Columns
| Primary key | Columns |
| DEPT_ID_PK | DEPARTMENT_ID |
| Check constraint | Check condition |
| DEPT_NAME_NN | "DEPARTMENT_NAME" IS NOT NULL |
| Foreign key | Referenced table | Referenced constraint | Delete rule | Columns |
| DEPT_LOC_FK | LOCATIONS | LOC_ID_PK | NO ACTION | LOCATION_ID |
| DEPT_MGR_FK | EMPLOYEES | EMP_EMP_ID_PK | NO ACTION | MANAGER_ID |
| Index | Type | Uniqueness | Columns |
| DEPT_ID_PK | NORMAL | UNIQUE | DEPARTMENT_ID |
| DEPT_LOCATION_IX | NORMAL | NONUNIQUE | LOCATION_ID |
| Option | Setting |
| Clustered | N |
| Generated by Oracle | N |
| Index Organized | N |
| Logging | Y |
| Partitioned | N |
| Temporary | N |
| Nested | N |
| Referenced by | Constraint |
| EMPLOYEES | EMP_DEPT_FK |
| JOB_HISTORY | JHIST_DEPT_FK |