I've got 2 queries. The first is
Where Months.Date = {^2008-09-01} the figure comes out at 7.6582.
If I run this SQL query:
I get the figure 6.6333
Why am I getting different results?
Thanks,
Stewart
Code:
SELECT Months.Date, ;
(SELECT SUM((Months.Date - AllStaff.Started)/36500) ;
FROM AllStaff ;
WHERE Months.Date>=AllStaff.Started AND Months.Date<AllStaff.Ended) ;
AS Centuries ;
FROM Months ;
INTO CURSOR Totals
If I run this SQL query:
Code:
SELECT {^2008-9-1},SUM(({^2008-9-1}-started)/36500) ;
FROM allstaff ;
WHERE {^2008-9-1}>=AllStaff.Started AND {^2008-9-1}<AllStaff.Ended
Why am I getting different results?
Thanks,
Stewart