I have some data in a sql database and I\'d like to calculate the slope. The data has this layout:
Date | Keyword | Score 2012-01-10 | ipad
Cast to decimal does not give correct results for me, it is not linear to the dates. Use TO_DAYS(date_field) instead, this becomes correct.
TO_DAYS(date_field)