I have created a query to select my lists of fields from some join tables. I am trying to compare between 2 from_unixtime(date) and return the result in 3 new columns which will be the difference in days, hours and minutes of the 2 from_unixtime(date).
Sample query is as per below:
SELECT from_unixtime(bug.date_submitted),
from_unixtime(history.date_modified),
from_unixtime(history.date_modified) - from_unixtime(bug.date_submitted) as 'resolve date'
How do i return the resolve date by days, hours and minutes?
Comments
Post a Comment