HI all
I have a table to store an employee's Leave application. It stores the first day as a date, the duration in days and a flag as approved or not!
I would like to show these in a table in 3 section, being: Approved (if the flag approved is signed as 1), Waiting (if the flag approved is 0 and the first day is greater than current date) and Not Approved( if the flag is 0 and the first Day is less than the current Date).
How can i construct a query for this, so i can show the 3 sections above mentioned in order of first day and grouped by aproval!? Any help please! very much appreciated
Thanks
Nick
I have a table to store an employee's Leave application. It stores the first day as a date, the duration in days and a flag as approved or not!
I would like to show these in a table in 3 section, being: Approved (if the flag approved is signed as 1), Waiting (if the flag approved is 0 and the first day is greater than current date) and Not Approved( if the flag is 0 and the first Day is less than the current Date).
How can i construct a query for this, so i can show the 3 sections above mentioned in order of first day and grouped by aproval!? Any help please! very much appreciated
Thanks
Nick