0% found this document useful (0 votes)
443 views3 pages

Hrms Database Design

The document describes the creation of several database tables to store employee and applicant information for a company. Tables are created for user login details, employee details, applicant details, applicant test details, employee attendance, leave requests, employee agreements, and employee salaries. Each table specification includes the table name, columns and column data types to store relevant data such as IDs, names, dates, numbers, statuses etc.

Uploaded by

jamshed90
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)
443 views3 pages

Hrms Database Design

The document describes the creation of several database tables to store employee and applicant information for a company. Tables are created for user login details, employee details, applicant details, applicant test details, employee attendance, leave requests, employee agreements, and employee salaries. Each table specification includes the table name, columns and column data types to store relevant data such as IDs, names, dates, numbers, statuses etc.

Uploaded by

jamshed90
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/ 3

**********THE STRUCTURE OF PEOPLE_USER_LOGIN**********

create table PEOPLE_USER_LOGIN


(
USER_ID varchar2 (10) not null primary key,
USER_NAME varchar2 (30) not null,
OLD_PSWD varchar2 (10),
NEW_PSWD varchar2 (10),
PSWD_EFF_DATE date,
PSWD_EXP_DATE date
)
***********Insert Values from user*****************
insert into people_user_login values('1001','jamshed','admin','admin','01-jan-20
14','01-jan-2014');
insert into people_user_login values('1002','sanjay','sanjay','sanjay','01-jan-2
014','01-jan-2014');
insert into people_user_login values('1003','chetan','chetan','chetan','01-jan-2
014','01-jan-2014');
***********people_employee************************
create table people_employee
(
emp_id varchar2 (10) not null primary key,
emp_f_name varchar2 (20) not null,
emp_m_name varchar2 (20),
emp_l_name varchar2 (20),
org_id varchar2 (10) not null,
level_id varchar2 (10) not null,
dept_id varchar2 (10) not null,
dob date,
dojoin date,
address_1 varchar2 (50),
address_2 varchar2 (50),
city varchar2 (15),
state varchar2 (20),
nationality varchar2 (15)
);
*************people_applicant***********************
create table people_applicant
(
applicant_id varchar2 (10) not null primary key,
applicant_name varchar2 (50) not null,
address_1 varchar2 (100),
address_2 varchar2 (100),
email varchar2 (50),
phone varchar2 (15),
mobile varchar2 (11),
dob date,
gender varchar2 (10),
nationality varchar2 (30),
work_exp number (10),
skill varchar2 (100),
industry varchar2 (30),
catagory varchar2 (30),
roles varchar2 (30),
current_employee varchar2 (100),
current_sal decimal (7,2),
highest_degree varchar2 (100),
second_highest varchar2 (100),
domain varchar2 (50),
current_location varchar2 (30)
);
****************applicant_test_detail*********************
create table applicant_test_detail
(
test_id varchar2 (10) not null primary key,
test_name varchar2 (30) not null primary key,
applicant_id varchar2 (10) not null primary key,
applicant_name varchar2 (50),
test_date date,
test_time date,
present_status varchar2 (15),
total_marks number (3),
marks_gained number (3),
test_status varchar2 (10),
pass_fail varchar2 (10),
next_round varchar2 (10)
);
**********employee_daily_attendance**********************
create table employee_daily_attendance
(
emp_id varchar2 (10) not null primary key,
emp_name varchar2 (30),
today_date varchar2 (10) not null primary key,
month varchar2 (10),
day varchar2 (10),
year number (4),
in_time date,
out_time date,
remark varchar2 (50)
);
**************leave_request*****************************
create table leave_request
(
req_id varchar2 (10) not null primary key,
emp_id varchar2 (10) not null,
emp_name varchar2 (30),
today_date date,
level_id varchar2 (10),
dept_id varchar2 (10),
from_date date,
to_date date,
days number (2),
reason varchar2 (100),
leave_type varchar2 (2),
activity_1 varchar2 (50),
activity_2 varchar2 (50),
activity_3 varchar2 (50),
person_1 varchar2 (50),
person_2 varchar2 (50),
person_3 varchar2 (50),
detail_1 varchar2 (100),
detail_2 varchar2 (100),
detail_3 varchar2 (100),
address varchar2 (100),
remark varchar2 (100),
leave_status varchar2 (5)
);
*********************employee_agreement*********************
create table employee_agreement
(
emp_id varchar2 (10) not null primary key,
emp_name varchar2 (30) not null,
level_id varchar2 (10),
allowance_type varchar2 (10) not null,
allowance_name varchar2 (20) not null primary key,
amt decimal (7,2) not null,
taxable varchar2 (5),
percentage numeber (3,2),
agreement_date date
);
********************emp_sal*********************************
create table emp_sal
(
emp_id varchar2 (10) not null primary key,
year number (4) not null,
month number (2) not null ,
allowance_type varchar2 (10),
allowance_name varchar2 (20) not null ,
amt decimal (7,2) not null,
taxable varchar2 (5),
percentage decimal (3,2)
);

You might also like