Number of Active Users


how do I get the number of active users as in active in the last month. There are two SQL tables Sessions and Status with a LastActivityAt column. Why do they differ? Since Sessions can have multiple entries for a user, I guess it is because he can log in from multiple devices. What is the Status entry showing compared to the Sessions one?