C
cinnie
hello gurus
I'm a volunteer with a sports club that hires many students on a part-time
basis. I'm really struggling with some SQL used in their payroll
calculations. Here's the situation, simplified to remove extraneous info:
a) In 2010, Employees are paid every 2 weeks starting on January 12.
b) tblEmpl has fields EmplID (pk), and DateOfBirth.
c) We are obliged to adjust the way employees are paid on the FIRST PAYDATE
of the month FOLLOWING the month in which the Employee turns 18 years old.
(eg: let's say Employee 1234 turns 18 on Feb 18, 2010. I need to identify
the first payday in the NEXT MONTH, namely March 9, 2010.
For each employee who turns 18 in 2010, the SQL needs to show two entries
like... 1234 Mar 9, 2010
Thanks in advance.
I'm a volunteer with a sports club that hires many students on a part-time
basis. I'm really struggling with some SQL used in their payroll
calculations. Here's the situation, simplified to remove extraneous info:
a) In 2010, Employees are paid every 2 weeks starting on January 12.
b) tblEmpl has fields EmplID (pk), and DateOfBirth.
c) We are obliged to adjust the way employees are paid on the FIRST PAYDATE
of the month FOLLOWING the month in which the Employee turns 18 years old.
(eg: let's say Employee 1234 turns 18 on Feb 18, 2010. I need to identify
the first payday in the NEXT MONTH, namely March 9, 2010.
For each employee who turns 18 in 2010, the SQL needs to show two entries
like... 1234 Mar 9, 2010
Thanks in advance.