quick question. I have a few tables holding forum post data. Much like this board, I want to be able to tell the user how many new posts have been made since their last visit...
each table holds all the individual post information, along with a datetime of when it was submitted.
So, I basically want to count all of the new posts, in all the different forums to relay that info when they sign in...
so i guess it boils down to: how can I count rows from multiple tables?
I have tried
SELECT (count(distinct table1.id) + count(distinct table2.id)) from table1, table2
and this gives me a good output. but now i want to limit the results according to the datetime versus the users last login datetime from each forum.
any advice ?