What is a good function to calculate the current hourly wage of an employee to a raise at a certain date? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What is a good function to calculate the current hourly wage of an employee to a raise at a certain date?

For example: Stewie is currently getting paid 12.50 an hour this month. By next month he will get paid 15.00 an hour. The way it'll calculate when to establish the raise, one must put the date that exceeds the previous month to the new month. Any methods are appreciated.

13th Sep 2017, 3:58 AM
Frankie
Frankie - avatar
1 Antwort
+ 2
I'm afraid I can't provide you any code, but an idea I have, maybe it goes like this: Create a table for storing Stewie's id, and date when Stewie should get a raise In anyway you can, create a schedule to check on the table and update Stewie's salary field in payroll table, when the date matches current date For easier task I would suggest you to use stored procedures as they are centralized, easier to maintain I hope I understood your point correctly, tell me if I didn't. Hth, cmiiw
13th Sep 2017, 6:19 AM
Ipang