1: 2: 3: 4:
SELECT tableA.seq_no, tableA.ord_dt, MAX(tableB.Coll_dt) as col1_dt FROM tableA inner join tableB on tableA.seq_no = tableB.seq.no WHERE tableA.ord_dt <= tableA.ord_dt GROUP BY tableA.seq_no, tableA.ord_dt