find out LOP(loss of pay) days from date range? in SQL for excel vba -
given data below, need count number of weeks off between date , date, not count when absent fall in before week off or after week off. can suggest how this, using sql query excel vba?
empid name daterange leavetype
111 aa 01/07/2017 week off
112 ab 02/07/2017 week off
113 ac 03/07/2017 present
114 ad 04/07/2017 present
115 ae 05/07/2017 present
116 af 06/07/2017 present
117 ag 07/07/2017 present
118 ah 08/07/2017 week off
119 ai 09/07/2017 week off
120 aj 10/07/2017 absent
121 ak 11/07/2017 present
122 al 12/07/2017 present
123 13/07/2017 present
124 14/07/2017 absent
125 ao 15/07/2017 week off
126 ap 16/07/2017 week off
127 aq 17/07/2017 absent
Comments
Post a Comment