sql server - Average Logins per day SQL Query -


I have a user table in MSSQL and I want to know the average number of logins for all users per day?

I'm thinking something with division, but not completely sure the user table looks like this

  [ID], [APPLICATION_ID], [LOGIN_NAME] [EMAIL ], [MOBILE_PHONE1], [MOBILE_PHONE2], [TITLE], [FIRST_NAME], [LAST_NAME], [birthday], [address1], [address2], [city], [country_id], [POSTAL_CODE], [PO_BOX ], [HOME_PHONE], [OFFICE_PHONE], [Fax], [comment], [DISPLAY_NAME], [MAIDEN_NAME], [address 3], [ADDRESS4], [keyword1], [keyword2], [KEYWORD3] KEYWORD4], [CREATED_BY], [CREATED_ON], [MODIFIED_BY], [MODIFIED_ON], [deleted], [DELETED_BY], [DELETED_ON], [version], [IDENTIFICATION_NO], [GENDER_REFERENCE_ID], [IDENTIFICATION_REFERENCE_ID] Registered], [contact_person], [conta Ct_email], [optional_email], [electronica_number], [LAST_LOGIN], [LAST_SUCCESSFUL_LOGIN], [LAST_UNSUCCESSFUL_LOGIN]  

By providing the table, there is no way to calculate the average. To do this, you will need a historical record of user logging.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -