Hi Dodge20,
Thanks for the fast reply. I have to admit that I am just learning SQL, so I could use a little explanation, please. I am trying to calculate the difference between the MAX and MIN for a date field.
Where does the MIN date fit into your query?:
SELECT COUNT(user_id)
FROM (SELECT user_id, MAX(TableDate) MaxUserDate
FROM board
GROUP BY user_id) TempTable
WHERE DATEDIFF(day, MaxUserDate, getdate()) <= 30