SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How i make ERD Diagram for payroll salary for employees


How i make ERD Diagram for payroll salary for employees

Author
Message
ahmed_elbarbary.2010
ahmed_elbarbary.2010
SSC-Enthusiastic
SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)

Group: General Forum Members
Points: 112 Visits: 106
Hi guys i want to make database for payroll only but i don't know how to make structure for this
suppose i want to calculate payroll every month for employees as following
basic salary
bonus
overtime
absence
deduction
meaning
salary = basic salary +bonus+overtime-absence-deduction
How i make database (ERD)Diagram for this
Meaning tables i need and relations
Lowell
Lowell
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28111 Visits: 39939
i googled for "payroll database examples"
and went for images related to the search;

this is the first one tha it saw that appealed to me, but it's really up to you to find an example you are comfortable with:



the image comes from some opensource software at http://epayroll.sourceforge.net, so you might want to consider not reinventing the wheel, when there are so many exisitng options out there.

Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Eirikur Eiriksson
Eirikur Eiriksson
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15058 Visits: 18597
Take a look at Industry-specific Data Models from Database Answers
Cool
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)SSC Guru (85K reputation)

Group: General Forum Members
Points: 85753 Visits: 41091
ahmed_elbarbary.2010 (4/28/2014)
Hi guys i want to make database for payroll only but i don't know how to make structure for this
suppose i want to calculate payroll every month for employees as following
basic salary
bonus
overtime
absence
deduction
meaning
salary = basic salary +bonus+overtime-absence-deduction
How i make database (ERD)Diagram for this
Meaning tables i need and relations


My recommendation is that you shouldn't actually spend any time doing this because you're going to miss a whole lot of stuff.

For example...
I see nothing in here to handle 1099 employees.
I see nothing in here to handle taxes right down to the city level.

And if you do write one, the testing will take a whole lot longer than you could ever imagine.

My bottom line recommendation is to use some form of 3rd party software that is well established and very well proven. If you want control over the software, the buy "Quick Books", will also allow for imports and exports if needed. If you don't care about absolute control, the sign up for a Web Service that will do it.

Payroll is one of the most difficult things there is to get right. Considering that you're asking how to design the database, I'll suggest that you're not going to get it right. Buy a 3rd party solution.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Michael Valentine Jones
Michael Valentine Jones
SSCertifiable
SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)

Group: General Forum Members
Points: 5724 Visits: 11771
Jeff Moden (4/28/2014)
ahmed_elbarbary.2010 (4/28/2014)
Hi guys i want to make database for payroll only but i don't know how to make structure for this
suppose i want to calculate payroll every month for employees as following
basic salary
bonus
overtime
absence
deduction
meaning
salary = basic salary +bonus+overtime-absence-deduction
How i make database (ERD)Diagram for this
Meaning tables i need and relations


My recommendation is that you shouldn't actually spend any time doing this because you're going to miss a whole lot of stuff.

For example...
I see nothing in here to handle 1099 employees.
I see nothing in here to handle taxes right down to the city level.

And if you do write one, the testing will take a whole lot longer than you could ever imagine.

My bottom line recommendation is to use some form of 3rd party software that is well established and very well proven. If you want control over the software, the buy "Quick Books", will also allow for imports and exports if needed. If you don't care about absolute control, the sign up for a Web Service that will do it.

Payroll is one of the most difficult things there is to get right. Considering that you're asking how to design the database, I'll suggest that you're not going to get it right. Buy a 3rd party solution.


I agree with everything Jeff says, and I would recommend that you find a hosted solution, especially if it is for a fairly small organization.

Even if you buy third-party software, the number of changes to laws will give you a full time job applying changes to the software, so let that be someone else's problem.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search