100% found this document useful (1 vote)
460 views20 pages

New Project LTD

This document describes a new project called New Project Ltd. It involves a system for tracking employee time cards. The time cards are issued to employees working on various client projects and are used to generate invoices to bill clients. The document outlines the entities, attributes, relationships, and tables involved in the system for tracking time cards and billing clients.

Uploaded by

Sanooj Remegius
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
460 views20 pages

New Project LTD

This document describes a new project called New Project Ltd. It involves a system for tracking employee time cards. The time cards are issued to employees working on various client projects and are used to generate invoices to bill clients. The document outlines the entities, attributes, relationships, and tables involved in the system for tracking time cards and billing clients.

Uploaded by

Sanooj Remegius
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

NEW PROJECT LTD

Developed by

Name: Sanooj Remegius Bastianpulle

Reg. No: 1038598A68955D2D

Page 1 of 20
NEW PROJECT LTD

Batch Code :

Start Date : 12/03/2011 End Date: 25/03/2011

Name of the Coordinator : Lahiru Rathnayake

Name of Developer : Sanooj Remegius Bastianpulle

Date of Submission : 26/03/2011

Page 2 of 20
NIIT

CERTIFICATE

This is to certify that this report, “Titled New Project Ltd.”, Embodies the original work
done by Sanooj Remegius in partial fulfillment of his/her course requirement at NIIT.

Coordinator: Lahiru Rathnayke

Page 3 of 20
ACKNOWLEDGEMENT

I would like to acknowledge the contributions of my Lecturer Mr. Lahiru


Ratnayake to the development of my project & presentation.

Mr. Lahiru Ratnayake directed me to a wide range of resources on the web. He


answered all of my questions as well as asked me questions that helped me to
narrow my search. Further, He helped me figure out correct documentation for
sources that did not fit the Research Guide examples. He gave me this help during
class time and after class. I also worked with students at NIIT who helped me
locate primary sources.

Page 4 of 20
SYSTEM ANALYSIS

System Summary: New Project Ltd. Is a company that provides staff on contract
for various project assignments it has a system of time cards. The cards are issued
to its employees. The time card enables New Project to prepare the final billing
that needs to be submitted to the clients for release of payment in lieu of work.

Page 5 of 20
ENTITIES

Number of entities: 6

Names of entities:

1. Client

2. Project

3. Employee

4. Time card

5. Time Card Expense File

6. Invoice

Page 6 of 20
ATTRIBUTES

Attributes:

Entity Attributes
1. Client Client Code
Company Name
Address
Country
Contact Person
Phone
2. Project Project Code
Client Code
Employee Code
Project Name
Project Description
Estimate Bill
Start Date
End Date
3. Employee Employee Code
Employee Name
Address
Country
Work Phone
Billing Rate
4. Time Card Time Card ID
Employee ID
Date Issued
Date Worked
Project ID
Work Description
Billable Hours
Work Code
5. Time Card Expense File Time Card Expense ID
Time Card ID
Expense Date
Expense Amount
Expense Description
Project ID
Expense Code ID
Expense Code

Page 7 of 20
6. Invoice Payment Code
Payment Mode ID
Payment Mode Name
Corresponding Project Code
Expense Amount
Payment Amount
Payment Date
Card Number
Card Holders Name
Expiry Date of Card

Page 8 of 20
E/R DIAGRAM

Payment Mode Payment Mode Corresponding


ID Name Project Code

Expiry Date of
Payment Card
Code

Card Card
Project Project Code
Number Holders
Invoice Description Project
Name Name
Payment
Amount Employee Start Date
Payment Expense Code
Date Amount
Client End Date
Receives Code
Project
Client
Code Estimate Bill
Designed
Company
Name
Billing Rate
Client Communicates Work Phone
Address
Done By
Country Contact Phone
Employee
Person Employee Code
Daily Fills
Employee
Country Address
Time Card Name
Employee ID
ID
Expense
Will Have Project ID
Code
Date
Issued Expense
Time Card Expense Code ID
Time Card
Date Payment Time Card Expense
Worked ID Expense
Date
Project ID Description

Work Description Payment Time Card ID Expense


Expense
Amount Date Amount
Page 9 of 20
TABLES

Number of Tables: 7

Structure of Tables: The table structure are shown here

CLIENT [Entity] PROJECT [Entity] PROJECT DETAILS [Relationship]


CLIENT PROJECT PROJECT DETAILS

Client Code Project Code Project Details ID

Company Name Client Code Project Code

Address Employee Code Client Code

Country Project Name Bill Estimated

Contact Person Project Description Actual Amount

Phone Estimate Bill Discount

Start Date Total Cost


INVOICE
End Date

EMPLOYEE [Entity]
EMPLOYEE Payment Code

TIME CARD
TIME DETAILS
CARD [Entity]
DETAILS TIME CARD
TIME EXPENSE
CARD [Entity]
EXPENSE INVOICE [Entity]
Payment Mode ID
Employee Code
Time Card ID Time Card Expense ID Payment Mode Name
Employee Name
Employee ID Time Card ID Corresponding Project Code
Address
Date Issued Expense Date Expense Amount
Country
Date Worked Expense Amount Payment Amount
Work Phone
Project ID Expense Description Payment Date
Billing Rate
Work Description Project ID Card Number
Page 10 of 20
Billable Hours Expense Code ID Card Holders Name

Work Code ID Expense Code Expiry Date of Card


The Project Details table is formed because of many-to-many relationship between the Project
and Clients.

Page 11 of 20
TABLES AFTER 1 NF

The Tables are already in 1 NF. The table structures are shown here.

CLIENT PROJECT PROJECT DETAILS


CLIENT PROJECT PROJECT DETAILS

Client Code Project Code Project Details ID

Company Name Client Code Project Code

Address Employee Code Client Code

Country Project Name Bill Estimated

Contact Person Project Description Actual Amount

Phone Estimate Bill Discount

EMPLOYEE Start Date Total Cost


EMPLOYEE
End Date
Employee Code

Employee Name

Address

Country

Work Phone

Billing Rate

Page 12 of 20
TIME CARD DETAILS TIME CARD EXPENSE INVOICE
TIME CARD DETAILS TIME CARD EXPENSE INVOICE

Time Card ID Time Card Expense ID Payment Code

Employee ID Time Card ID Payment Mode ID

Date Issued Expense Date Payment Mode Name

Date Worked Expense Amount Corresponding Project Code

Project ID Expense Description Expense Amount

Work Description Project ID Payment Amount

Billable Hours Expense Code ID Payment Date

Work Code ID Expense Code Card Number

Card Holders Name

Expiry Date of Card

Page 13 of 20
TABLES AFTER 2 NF

The tables are already in 2 NF as the attributes in each table depend on the primary key. The
table structures are shown here.

CLIENT PROJECT PROJECT DETAILS


CLIENT PROJECT PROJECT DETAILS

Client Code Project Code Project Details ID

Company Name Client Code Project Code

Address Employee Code Client Code

Country Project Name Bill Estimated

Contact Person Project Description Actual Amount

Phone Estimate Bill Discount

EMPLOYEE Start Date Total Cost


EMPLOYEE
End Date
Employee Code

Employee Name

Address

Country

Work Phone

Billing Rate

Page 14 of 20
TIME CARD DETAILS TIME CARD EXPENSE INVOICE
TIME CARD DETAILS TIME CARD EXPENSE INVOICE

Time Card ID Time Card Expense ID Payment Code

Employee ID Time Card ID Payment Mode ID

Date Issued Expense Date Payment Mode Name

Date Worked Expense Amount Corresponding Project Code

Project ID Expense Description Expense Amount

Work Description Project ID Payment Amount

Billable Hours Expense Code ID Payment Date

Work Code ID Expense Code Card Number

Card Holders Name

Expiry Date of Card

Page 15 of 20
TABLES AFTER 3 NF

In the Time Card Expenses table the Expense Code depends on Expense Code ID not on Time
Card Expense ID. Therefore, for the tables to be in 3 NF, we need to create another table,
Expenses.

Also in the Invoice table, the attribute Payment Mode Name depends on Payment Mode ID and
not on Payment Code. Therefore, we need to create a separate table Payment Modes.

In addition, the attributes Card Holders Name and Expiry Date of Card depend on Card Number
not Payment Code. Therefore we need to create another table Credit Cards.

The updated table structures are shown here.

CLIENT PROJECT PROJECT DETAILS


CLIENT PROJECT PROJECT DETAILS

Client Code Project Code Project Details ID

Company Name Client Code Project Code

Address Employee Code Client Code

Country Project Name Bill Estimated

Contact Person Project Description Actual Amount

Phone Estimate Bill Discount

Start Date Total Cost

End Date

Page 16 of 20
EMPLOYEE TIME
TIME CARD
CARD DETAILS TIME CARD EXPENSE
EMPLOYEE DETAILS TIME CARD EXPENSE

Employee Code Time Card ID Time Card Expense ID


EXPENSES
Employee Name Employee ID Time Card ID
EXPENSES

Address Date Issued Project ID


Expense Code ID
Country Date Worked Expense Code ID
Expense Code
Work Phone Project ID
Project ID
Billing Rate Work Description
Expense Description
Billable Hours
Expense Date
Work Code ID
Expense Amount
INVOICE

INVOICE

Payment Code PAYMENT MODES CREDIT CARDS


PAYMENT MODES CREDIT CARDS
Payment Mode ID

Payment ModeProject
Corresponding ID Code Credit Card Number

Payment Mode Name


Expense Amount Card Holders name

Payment Amount Expiry Date of Card

Payment Date

Card Number

Page 17 of 20
TABLES AFTER DENORMALIZATION

When we place the information about credit card in a separate table, the query performance
during the generation of payment receipt will get affected due to creation of joins in every
payment receipt. Therefore, for optimum performance, we denormalize and place the credit
card information back into the Invoice table. The updated table structures are shown here.

CLIENT PROJECT PROJECT DETAILS


CLIENT PROJECT PROJECT DETAILS

Client Code Project Code Project Details ID

Company Name Client Code Project Code

Address Employee Code Client Code

Country Project Name Bill Estimated

Contact Person Project Description Actual Amount

Phone Estimate Bill Discount

Start Date Total Cost

End Date INVOICE


EMPLOYEE
TIME CARD DETAILS
EMPLOYEE Payment Code

Time Card Code


Employee ID Payment Mode ID
TIME CARD DETAILS TIME CARD EXPENSE INVOICE
Employee
Employee ID
Name Corresponding Project Code
TIME CARD EXPENSE
Date Issued
Address Expense Amount
Time Card Expense ID
Date Worked
Country Payment Amount
Time Card ID
Project ID
Work Phone Payment Date
Project ID
Work
BillingDescription
Rate Card Number
18 ofID
PageCode
Expense 20
Billable Hours Card Holders Name

Work Code ID Expiry Date of Card


PRIMAR AND FOREIGN KEYS

The primary and Foreign keys (whenever applicable) for each table are listed with their
respective table names:

 CLIENT
o Primary Key: Client Code
 PROJECT
o Primary Key: Project Code
o Foreign Keys: Client Code, Employee Code
 PROJECT DETAILS
o Primary Key: Project Details ID
o Foreign Keys: Project Code, Client Code
 EMPLOYEE
o Primary Key: Employee Code
 TIME CARD DETAILS
o Primary Key: Time Card ID
o Foreign Keys: Employee ID, Project ID
 TIME CARD EXPENSES
o Primary Key: Time Card Expense ID
 INVOICE
o Primary Key: Payment Code
o Foreign Keys: Payment Mode ID, Project Code, Expense Amount
 EXPENSES
o Primary Key: Expense Code ID
o Foreign Keys: Project ID, Expense Amount
 PAYMENT MODES
o Primary Key: Payment Mode ID

Page 19 of 20
INVOICE
CLIENT PAYMENT MODES
PROJECT DETAILS Payment Code
Client Code Payment Mode ID
Project Details ID Payment Mode ID
Company Name Payment Mode Name
Project Code Corresponding Project Code
Address

Client Code Expense Amount


Country

Bill Estimated Payment Amount


Contact Person

Actual Amount Payment Date TIME CARD DETAILS


Phone

Discount Card Number


Time Card ID

Total Cost Card Holders Name


Employee ID
PROJECT Expiry Date of Card
Date Issued

Project Code
Date Worked

Client Code
Project ID

Employee Code EXPENSES Work Description

Project Name Expense Code ID Billable Hours

Project Description Expense Code Work Code ID


EMPLOYEE
Estimate Bill Project ID
Employee Code
Start Date TIME CARD EXPENSE
Expense Description
Employee Name
End Date Time Card Expense ID
Expense Date
Address
Time Card ID
Expense Amount
Country
Project ID
Work Phone
Expense Code ID
Billing Rate

Page 20 of 20

You might also like