This content has been marked as final.
Show 3 replies
-
1. Re: Calculate total empoyee days (as of present) that have elapsed for each month in a FY
WolfShade Nov 7, 2014 9:46 AM (in response to WolfShade)Anyone?
-
2. Re: Calculate total empoyee days (as of present) that have elapsed for each month in a FY
FirstSavings Nov 7, 2014 12:45 PM (in response to WolfShade)This may be a good start. Display by Month Year the Average and Sum Dates between Start and Stop by Project.
SELECT CAST (
(CAST(MONTH(Start) AS varchar(2)) + '/01/' + CAST(YEAR(Start) AS varchar(4)))
AS DateTime
)
AS DatePeriod,
AVG(DateDiff(day, Start, Stop)) AS AverageDaysToClose,
SUM(DateDiff(day, Start, Stop)) AS SumTotalDaysToClose,
Name
FROM Projects
GROUP BY CAST (
(CAST(MONTH(Start) AS varchar(2)) + '/01/' + CAST(YEAR(Start) AS varchar(4)))
AS DateTime
),
Name
ORDER BY DatePeriod, Name
-
3. Re: Calculate total empoyee days (as of present) that have elapsed for each month in a FY
WolfShade Nov 7, 2014 1:27 PM (in response to FirstSavings)Hi, FirstSavings,
Thanks for replying! I'll give that a shot as a starting point, and let you know.
Much appreciated,
^_^

