Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How i make ERD Diagram for payroll salary for employees Expand / Collapse
Author
Message
Posted Monday, April 28, 2014 5:11 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Saturday, July 5, 2014 5:34 AM
Points: 17, Visits: 40
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
Post #1565517
Posted Monday, April 28, 2014 5:20 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 11:24 AM
Points: 12,904, Visits: 31,976
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1565520
Posted Monday, April 28, 2014 5:56 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 11:05 AM
Points: 1,549, Visits: 4,281
Take a look at Industry-specific Data Models from Database Answers
Post #1565538
Posted Monday, April 28, 2014 8:40 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 8:17 AM
Points: 36,944, Visits: 31,448
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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1565610
Posted Monday, April 28, 2014 9:57 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 9:20 AM
Points: 3,135, Visits: 11,474
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.



Post #1565639
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse