Hello,
I have one query with timestamp. I got below error.
select users.login,
FROM_UNIXTIME(AVG(UNIX_TIMESTAMP(ticket_history.create_time)-UNIX_TIMESTAMP(ticket.create_time)))
from ticket_history_type
inner join ticket_history on ticket_history.history_type_id=ticket_history_type.id
inner join ticket on ticket.id = ticket_history.ticket_id
inner join users on users.id = ticket_history.change_by
where
ticket.create_time BETWEEN '2014-10-01' AND '2014-10-15'
AND
ticket_history.name ='%%new%%Fermeture réussie%%'
group by users.id
error: function unix_timestamp(timestamp without time zone) does not exist
Thanks in advanced for your input.