/ Published in: SQL
Here you may find some useful snippets for calculating relative time for different purposes: to get info from a column within certain date, like the latest 7 days, to get time interval etc.
URL: http://www.apphp.com/index.php?snippet=mysql-calculate-relative-time-ago