Hi again,
Suppose i have
> ID FromDate ToDate
> -- -------- -------
> 1 01/01/2005 30/6/2007
> 2 01/01/2008 31/12/2009
I want to count the years that are included on this 2 rows. Here is 1,5 years for the first row + 2 years from second row = Total of 3,5 years. How can i do this with SQL?