goofaholix
MIS
I'm inserting the following into a column that is data type float
(Datediff(dd,Date_Of_Start,isnull(DATE_OF_LEAVING,getdate()))/365) AS Length_of_Service
What I'm after is w decimal to several levels of precision that measures the years between start and finish but instead I'm getting an integer which is the number of full years as if I had done (Datediff(yy
Any idea what I'm doing wrong?
Thanks.
Bruce
(Datediff(dd,Date_Of_Start,isnull(DATE_OF_LEAVING,getdate()))/365) AS Length_of_Service
What I'm after is w decimal to several levels of precision that measures the years between start and finish but instead I'm getting an integer which is the number of full years as if I had done (Datediff(yy
Any idea what I'm doing wrong?
Thanks.
Bruce