I have got a table that is a result of a (My)SQL query. In this table I have the post creation timestamp and the user comment creation timestamp. The trick is that not all posts have a comment (so some comment_creation are NULL).
I would like to order the rows according of the most recent creation time of the post or user comment.
How can I get the max(post_creation, comment_creation) of each row and order them (DESC order)?
Thanks for all contribution.
Based on your previous question, try: