Since you added <> For table A and also added when getting max timetamp similarly , you need > current date condition added to table A along with <>.
Moreover, if you want to mimic what TS did from the ioriginal post then you don’t need <> and > current date in table B but very much needed in table A. Without doing this step the results are going to mismatch from TS.
Joined: 10 May 2007 Posts: 2221 Location: Hampshire, UK
Why don't you just answer the OPs query and get on with life? OP has not come back so all you 2 are doing is conjecture. Do this conversation with PMs if you wish to continue answering the question about how long the dtring is when you do not even know if it is a bit of string.
OP (topic starter) get back with some feedback - that, at least, is the minimal politeness.