Yes you can do it with a window join but that's clearly overshoot... Just a very simple function would do -- View this message in context: http://r.789695.n4.nabble.com/What-about-this-FR-tp4677877p4677908.html Sent from the datatable-help mailing list archive at Nabble.com.