Trying to do a bit of magic (or stupidity) with this query. I am doing a left join with a rank subquery from outboundsms to inboundsms. The thing is that I need to be able to us