I do a fair amount of manual queries directly from the 'jamfsoftware' database utilizing applications like Sequel Pro/MySQL Workbench and I am having trouble converting or getting the epoch time from the `computers_denormalized` table into something that is usable for reporting. I am running the below but am getting NULL values in return:
SELECT `computer_name`,
FROM_UNIXTIME(last_contact_time_epoch
,"%Y-%m-%d") AS 'last check-in',FROM_UNIXTIME(last_contact_time_epoch
) AS 'last inventory update'
FROM `computers_denormalized`
I know I could use the GUI or manually copy and paste the epoch numbers into some online converter but I am looking for something that I can do right in the sql code. Are there any sql gurus out there that could help?
Thanks!