Hi All,
I wanna create a query in vb.net related to SQL 2005 that gives me the number of days the employee spent or will in a specific month depending on the Contract period as follow:
* The usere will input e.g :
Contract StartDay = 10-Oct-08
Contract LastDay = 15-Oct-09
Month = Oct-09
And the result = 15 (Since the employee will spend 15 days in Oct-09)
>> What is the formula or How can I make the third and forth fields (Month + Result) ?
Any ideas .
I wanna create a query in vb.net related to SQL 2005 that gives me the number of days the employee spent or will in a specific month depending on the Contract period as follow:
* The usere will input e.g :
Contract StartDay = 10-Oct-08
Contract LastDay = 15-Oct-09
Month = Oct-09
And the result = 15 (Since the employee will spend 15 days in Oct-09)
>> What is the formula or How can I make the third and forth fields (Month + Result) ?
Any ideas .