princeofdumph
Registered User.
- Local time
- Today, 08:06
- Joined
- Mar 21, 2009
- Messages
- 12
Hi,
I have a query where I have allotted various allowances to employees. It is as follows:
EmpName; Desig; AllowName; AllowValue; AllowGivenFromDate.
I am now trying to build a query where it gives me employee names and relevant allowances details but only from the "GivenFromDate" onwards in "monthwise" data. Like for example, for Mr.ABC who was given car allowance from 1st Dec 2017:
Mr.ABC; Worker; CarAllow; $12345; Dec2017
Mr.ABC; Worker; CarAllow; $12345; Jan2018
Mr.ABC; Worker; CarAllow; $12345; Feb2018
Mr.PQR; Manager; RentAllow; $65432; Feb2018
and so on.
I do have 3 tables called Days, Months, Years. They contain numbers from 1 to 31; 1 to 12 and years 2017 and 2018 for Days, months, years tables respectively. I would really appreciate if someone helps me with this problem. Thanks
I have a query where I have allotted various allowances to employees. It is as follows:
EmpName; Desig; AllowName; AllowValue; AllowGivenFromDate.
I am now trying to build a query where it gives me employee names and relevant allowances details but only from the "GivenFromDate" onwards in "monthwise" data. Like for example, for Mr.ABC who was given car allowance from 1st Dec 2017:
Mr.ABC; Worker; CarAllow; $12345; Dec2017
Mr.ABC; Worker; CarAllow; $12345; Jan2018
Mr.ABC; Worker; CarAllow; $12345; Feb2018
Mr.PQR; Manager; RentAllow; $65432; Feb2018
and so on.
I do have 3 tables called Days, Months, Years. They contain numbers from 1 to 31; 1 to 12 and years 2017 and 2018 for Days, months, years tables respectively. I would really appreciate if someone helps me with this problem. Thanks