database - getting count of users in periods of times in MySQL -


I want to calculate my users from time to time in MySQL I have written this question (I know that this is correct But this query only gives me the number of registered users from time to time.

  SELECT DATE_FORMAT (reg_date, '% Y-% V') in the form of 'Week', by counting (*) as 'user' group by wik   

Your question - as of now - is not very specific, ...

Since you are using a field called reg_date, which you group, it will suggest that you get the countdown date registration date, so you have a separate column for your 'wik' Will have to take.

Another possibility may be that you have to use a completely different table, where "user actions" (or whatever you want) - can be stored - instead of users' data is.

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -