
SELECT
m.resource_id as "Computer ID",
m.full_name as " Computer Full Name",
to_timestamp(invce.WARRANTY_EXPIRY_DATE/1000) as "Warranty Expiry Date"
from
InvComputerExtn invce
join managedcomputer m on
invce.computer_id = m.resource_id
where
m.managed_status not in (65, 66)
order by
"Computer ID"