I have wrecked my brain on this problem for quite some time. I\'ve also reviewed other questions but was unsuccessful.
The problem I have is, I have a list of results/t
select registration,ID,date,unittype from your_table where (registration, date) IN (select registration,max(date) from your_table group by registration)