Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am developing an application which should show the booked working hours for employees. The interval of these booked hours is a determined period.
For 2011 these are the dates on which the hours booked must be shown:
period 1: 27-12-2010 till 23-01-2011
period 2: 24-01-2011 till 20-02-2011
period 3: 21-02-2011 till 23-03-2011 and so on.
To retrieve the hours from the database in SQL, I used the Posting Date Field in the database. And just put: " where Posting Date between '2011-02-21' and '2011-03-27'. Ofcourse that works. But it's not very usefull to change this for every period applicable.
Is there a way that I can use the period dates above to automatically select the right amount of rows from the database? Instead of changing this by hand every time?
Thanks!
I managed to make an if statement in a chart which says EmpDate <= Date. I then get the right FTE for each date in that period. But since I need the entire period, is there a way to only show it one time for that entire period?