BikeToWork
Programmer
I understand that it is a cardinal sin to save duplicate data in a database and was wondering if someone could suggest an alternative to my current approach. I import a log file of user logins into a database every month. The user's active/inactive status for the month is dependent on whether or not they had login(s) during that month. In addition to the log file of login data, there is also a tblUser table, which contains user information. What I'm doing currently is using another table (tblUserActive) where I save the UserID and Month for all users and mark their status active or inactive for the month depending on whether or not they had logins during the month. The problem with this method is that I am basically duplicating certain fields from the user table each month. Is there a better way? Thanks in advance for any advice.