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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -