naa tingali ni shortcut but di ko kahibalo, longcut nalang (wa ni nako gi check ang sql). assuming wala nay significance and ID.
select freightbill, max(timestamp) as 'col_timestamp'
into #tbl_timestamp
from history
group by freightbill
select tbl_tmp.freightbill, tbl_tmp.col_timestamp, tbl_hist.status
into #tbl_status
from #tbl_timestamp tbl_tmp,
history tbl_hist
where (tbl_tmp.freightbill = tbl_hist.freightbill) and
(tbl_tmp.col_timestamp = tbl_hist.timestamp)
select tbl_master.freightbill, tbl_stat.col_timestamp, tbl_stat.status
from freight_bill tbl_master,
#tbl_status tbl_stat
where tbl_master.freightbill = tbl_stat.freightbill