I have a datetime column called \'last_login\'.
I want to query my database to select all records that haven\'t logged in within the last month. How do I do this?
matthewh was almost correct, except the > should have been a right one.
>
where u.last_login > date_sub(now(), interval 1 month)