Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3974688
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:35:50+00:00 2026-05-20T04:35:50+00:00

Had anyone any idea how to query a vbulletin database to generate a report

  • 0

Had anyone any idea how to query a vbulletin database to generate a report on the number of registrations per month/year to achive results like..

MM/YYYY      Count
01/2001  :   10
02/2001  :   12
...
...

Thanks to those answers below.. My final version that works is as follows:

SELECT 
  COUNT(*) as 'Registrations', 
  YEAR(FROM_UNIXTIME(joindate)) as 'Year',
  MONTH(FROM_UNIXTIME(joindate)) as 'Month'
FROM vbfuser
GROUP BY Year,Month
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:35:50+00:00Added an answer on May 20, 2026 at 4:35 am

    I am not familiar with vBulletin’s database structure, but you should do something like this, assuming your user table has a date/datetime/timestamp created_date or reg_timestamp column or something similiar, using MySQL’s YEAR() and MONTH() functions.

    select 
        count(*) as count, 
        year(reg_timestamp) as year 
        month(reg_timestamp) as month
    from users 
    group by year, month;
    

    This will result in something similiar to this:

    +-------+-------+------+
    | count | month | year |
    +-------+-------+------+
    |     4 |    11 | 2008 | 
    |     1 |    12 | 2008 | 
    |   196 |    12 | 2009 | 
    |   651 |     1 | 2010 | 
    +-------+-------+------+
    

    Edit: regarding Dave’s comment: vBulletin’s date seems to be stored in Unixtime format. In this case, simply wrapping the column with FROM_UNIXTIME will convert it to a readable MySQL date:

    select 
        count(*) as count, 
        year(from_unixtime(reg_timestamp)) as year 
        month(from_unixtime(reg_timestamp)) as month
    from users 
    group by year, month;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone had any experience with httpZip product (ISAPI - based compression for IIS). I'm
Has anyone had any success running two different web servers -- such as Apache
Has anyone had any experience targetting WSH in the way that VBScript , JScript
Has anyone had any experience in building a 'real world' application with the Smart
Has anyone had any experience scaling out SQL Server in a multi reader single
Has anyone had any luck with querying/changing SPNs on a Windows domain? Most of
Has anyone had any luck running two instances of the iPhone simulator to test
Has anyone had any luck of using Oracle from .Net on a 64 bit
I was curious if anyone had any problems creating unit tests around using the
I was curious if anyone had any hard numbers around the performance difference between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.