If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > please verify my payroll data model (was "Schema")

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-05, 09:33
skefe skefe is offline
Registered User
 
Join Date: Jan 2005
Posts: 8
please verify my payroll data model (was "Schema")

hi everybody....
I've got this schema that i would someone to verify for me and let me know if i'm doing a good job.It's a payroll designing.

thanks...
Attached Images
File Type: png Schema.png (64.5 KB, 1717 views)
Reply With Quote
  #2 (permalink)  
Old 01-17-05, 19:08
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
BonusConge is a repeating group. It violates first normal form.

I don't know your business rules, so I prefer not to comment further.
__________________
visit: relationary
Reply With Quote
  #3 (permalink)  
Old 01-17-05, 23:21
Vmusic Vmusic is offline
Registered User
 
Join Date: Dec 2004
Posts: 54
Payroll

Hi,
Boy it's hard to tell here. An 'operator' is a person in a role and I wouldn't directly relate them to a machine. I'm not certain what a 'BonusConge' is, but it's not normalized. What will you do when Qa25 comes along?

Sorry Je n'est pas parlez francaise.

Vmusic
Reply With Quote
  #4 (permalink)  
Old 01-18-05, 09:08
skefe skefe is offline
Registered User
 
Join Date: Jan 2005
Posts: 8
Talking same model

firt, i just wanna say thanks to certus and vmusic for this quick post.
my english is not good forgive me.

'BonusConge' is a table created to receive amount for each operator every 15 days, because we have payroll in every 15 days.
Qz1 receive the amount between : 01 jan to 15 jan ex. Qz1=$300
qz2 receive the amount between : 16 jan to 31 jan ex. Qz1=$400
and at the end of the year we'll use those amount to calculate :
boni + Vaccation leave
Boni is the compilation of all amount for 1 year divide by 12
Vaccation is the result of Boni divide by 2.

An operator is a person working on a machine and it's possible that opeartor know many machines.

God hope u anderstand me...
thanks for all Guys.
Reply With Quote
  #5 (permalink)  
Old 01-21-05, 09:16
skefe skefe is offline
Registered User
 
Join Date: Jan 2005
Posts: 8
Talking pls pay attention

Just take a look with this and let me know if i'm right.
tanks a lot.
Attached Images
File Type: png Schema.png (106.1 KB, 1269 views)
Reply With Quote
  #6 (permalink)  
Old 01-22-05, 15:17
Vmusic Vmusic is offline
Registered User
 
Join Date: Dec 2004
Posts: 54
Hi

Hi Skefe,
It looks, and again it's hard to tell, like your 1) need to track the time each person works on a machine then 2) convert that to a payroll

There are many "work-effort" models out there available. Make it generic, because what if they are perform some other task that is not working on a machine - do they not get paid? Like maintenance or other downtime.

I attached a conceptual model... it may not be exactly correct, but it should help to get you thinking a little better about work effort.

Bon Chance!
Vmusic
Attached Images
File Type: gif BetterStartPayWork.gif (37.1 KB, 492 views)
Reply With Quote
  #7 (permalink)  
Old 01-26-05, 03:54
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
Here is a suggested alternate model:
Attached Images
File Type: jpg untitled.JPG (72.8 KB, 751 views)
__________________
visit: relationary

Last edited by certus; 01-26-05 at 03:59.
Reply With Quote
  #8 (permalink)  
Old 01-31-05, 15:34
skefe skefe is offline
Registered User
 
Join Date: Jan 2005
Posts: 8
Red face same model

hi guys...

thanks for the last one i 've found very good but i wonder me instead table Operator it would be table Payroll. One question <<What happening if i want to add a new operator?>>i've got no Operator table .
May introduce the Operator table ? once again you're help will be very appreciate.

Thanks.
Reply With Quote
  #9 (permalink)  
Old 01-31-05, 21:59
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
I saw this coming. The operateur table contains the fixed amount used in calculation not the results of the calculations:

reg_hres: This is what is regarded as the min regular hours for the operateur such as 37.5 hours.

reg_mnt: This is the regular rate of pay per hour.

ot_mnt: The is the rate of pay for overtime per hour.

sal_min: This is the minimum annual salary.

These amounts are unique to the operateur so do not require another table.
__________________
visit: relationary
Reply With Quote
  #10 (permalink)  
Old 01-31-05, 22:00
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
At least that is what I gleaned for business rules from your model
__________________
visit: relationary
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On