I'm attempting to create a query that would show the difference in date between a date recorded in a column and the current date, but I keep receiving the following error:
What function can I use to calculate this date difference in Google Cloud SQL?
Current code:
Code:
"Cannot call method "getTime" of null."
What function can I use to calculate this date difference in Google Cloud SQL?
Current code:
Code:
SELECT date, DATEDIFF(date, CURRENT_DATE()) AS daysLeft
FROM table;