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 8596281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:38:20+00:00 2026-06-12T00:38:20+00:00

Not a programmer but using data.stackexchange.com. I’m querying the public SE data explorer and

  • 0

Not a programmer but using data.stackexchange.com. I’m querying the public SE data explorer and the column names that I’m specifying are invalid. Also, how do I specify Count (Posts) and Count (Votes)?
Is anyone who queried data.se and knows the db schema able to help me correct this code?

Select Count (u.Id)
From Users u 
Left Join Posts p on u.Id = p.OwnerUserId
Left join SuggestedEdits e on u.Id = e.OwnerUserId
left join Votes v on u.Id = v.UserId
WHERE ((u.CreationDate BETWEEN 'qwerty' AND 'qwerty')
AND (p.CreationDate BETWEEN 'qwerty' AND 'qwerty')
AND (p.ClosedDate is null)
OR (e.CreationDate BETWEEN 'qwerty' AND 'qwerty'))
AND Count (Posts) = x
OR Count (Votes) = y
Group by u.CreationDate, p.OwnerUserId, UserTypeId, u.DisplayName, p.CreationDate
  • 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-06-12T00:38:22+00:00Added an answer on June 12, 2026 at 12:38 am

    Did you try the Compose Query option found here. If you click that link it shows you the database schema on the right-hand side in the sidebar.

    Note that the sidebar can be hidden, just click the link to show it again. Is that what you need?

    EDIT

    I am still not really sure what you are trying to do exactly. If I were in your position I would start off by running some simple queries of each individual table first. This way you can see what data is stored there.

    Run this query and check out the results:

    SELECT *
    FROM Users
    WHERE CreationDate BETWEEN '2012-06-01 08:00:00' AND '2012-06-02 09:00:00'
    

    Run this query and check out the results:

    SELECT *
    FROM Posts
    WHERE CreationDate BETWEEN '2012-06-01 08:00:00' AND '2012-06-02 08:10:00'
    

    Run this query and check out the results:

    SELECT *
    FROM Votes
    WHERE CreationDate BETWEEN '2012-06-01 08:00:00' AND '2012-06-02 08:10:00'
    

    I’m not sure why you have included the SuggestedEdits table in your join as it does not appear you are using that table anywhere else. So leave it out.

    Now after seeing what the data looks like you should be able to piece them together to find what you are after. Which I still don’t know? Hopefully something like this will help get you started. This query will return some results but I’m not sure it is what you are after.

    SELECT Count(u.Id), Count(p.Id), Count(v.Id)
    FROM Users u
    LEFT JOIN Posts p on u.Id = p.OwnerUserId
    LEFT JOIN Votes v on u.Id = v.UserId
    WHERE u.CreationDate BETWEEN '2012-06-01 08:00:00' AND '2012-06-02 09:00:00'
    GROUP BY u.CreationDate, p.OwnerUserId, v.VoteTypeId, u.DisplayName, p.CreationDate
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not much of a programmer but I want to integrate http://storify.com/ into my
This not a programming question but Most of the programmers using Eclipse should have
I'm not generally a GUI programmer but as luck has it, I'm stuck building
I'm not a programmer, but I've done all the customizations for my web shop
First, let me say I'm not a professional programmer, but an engineer who had
This is not a programming question but I hope Microsoft programmer can see this
I'm not much of a web programmer, but I'm creating a simple web app
It was explained to me by a more senior PHP programmer that using PHP
I'm an amateur programmer that's experimenting using pthreads, to see to what extent a
Input: The customer claims that the application (.NET) when querying for some data returns

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.