Code:
SELECT r2.unit_id,r2.number,r.name
FROM renter r
JOIN (
SELECT
MAX(date_time) AS date_time,r2.unit_id,
r2.name,unit.unit_id,unit.number
FROM
renter r2
JOIN unit ON unit.unit_id = r2.unit_id
GROUP BY
unit.unit_id
) AS r2 ON r.unit_id = r2.unit_id
AND r.date_time = r2.date_time
AND r.name = 'Vacant'
This is what I used to solve my issue. I located it in anther portion of this forum. It locate all the vacant units in the apartment database. Thanks for the help. Issue solved.