Is there a better (more performant) way to join on the MAX(id) (without using a subselect) than my actual way? We are dealing with huge databases and are trying to optimize as much as possible
SELECT e.*, r.report_name FROM report r
LEFT JOIN engineer e ON e.id = r.id
WHERE e.id = (SELECT MAX(id) FROM engineer WHERE process = r.process)
Thanks in advance!
Maybe this will help you