0% found this document useful (0 votes)
3 views2 pages

Tables

The document outlines various database tables related to a company's organizational structure, including regions, countries, locations, job history, jobs, departments, and employees. Each table is described with its columns, data types, and constraints. The data includes identifiers for regions and countries, as well as details about employees and their job roles within the organization.

Uploaded by

nemisruparel07
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Tables

The document outlines various database tables related to a company's organizational structure, including regions, countries, locations, job history, jobs, departments, and employees. Each table is described with its columns, data types, and constraints. The data includes identifiers for regions and countries, as well as details about employees and their job roles within the organization.

Uploaded by

nemisruparel07
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

region

region id Region Name


123 India
456 Brazil
789 Afghanistan
321 Spain
654 Shri Lanka

countries

COUNTRY_ID COUNTRY_NAME REGION_ID


a1 aaaa 123
a2 bbbb 456
a3 cccc 789
a4 dddd 321
a5 eeee 654

locations

LOCATION_ID STREET_ADDRESS POSTAL_CODE CITY STATE_PROVINCE COUNTRY_ID


123 abcd 654321 pbr
ab a1
345 efgh 987654 vrl
cd a2
456 ijkl 132212 vvn
ef a3
789 mnop 753232 anand
gh a4
12 qrst 327763 amd
ij a5

job history

Table Column Data Type Length


Precision Scale Primary Key Nullable Default Comment
JOB_HISTORY EMPLOYEE_ID Number - 6
0 1 - - -
START_DATE Date 7
- - 2 - - -
END_DATE Date 7
- - - nullable - -
JOB_ID Varchar2 10
- - - nullable -
-
DEPARTMENT_ID Number -
4 0 - nullable - -

jobs

Table Column Data Type Length Precision


Scale Primary Key Nullable Default Comment
JOBS JOB_ID Varchar2 10 -
- 1 - - -
JOB_TITLE Varchar2 35 -
- - - - -
MIN_SALARY Number - 6
0 - nullable - -
MAX_SALARY Number - 6
0 - nullable - -

departments

Table Column Data Type Length


Precision Scale Primary Key Nullable Default Comment
DEPARTMENTS DEPARTMENT_ID Number - 4
0 1 - - -
DEPARTMENT_NAME Varchar2 30
- - - nullable - -
MANAGER_ID Number -
6 0 - nullable - -
LOCATION_ID Number -
4 0 - nullable - -

employee

Table Column Data Type Length


Precision Scale Primary Key Nullable Default Comment
EMPLOYEES EMPLOYEE_ID Number - 6
0 1 - - -
FIRST_NAME Varchar2 20
- - - nullable - -
LAST_NAME Varchar2 25
- - - - - -
EMAIL Varchar2 25
- - - - - -
PHONE_NUMBER Varchar2 20
- - - nullable - -
HIRE_DATE Date 7 -
- - - - -
JOB_ID Varchar2
10 - - - - -
-
SALARY Number
- 8 2 - nullable -
-
COMMISSION_PCT Number -
2 2 - nullable - -
MANAGER_ID Number -
6 0 - nullable - -
DEPARTMENT_ID Number -
4 0 - nullable - -

You might also like