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

  • Home
  • SEARCH
  • 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 8329459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:47:45+00:00 2026-06-09T01:47:45+00:00

For a statistics application, with a table structure as such: unique_id | browser_family |

  • 0

For a statistics application, with a table structure as such:

unique_id | browser_family | os | date_time | js_enabled | flash_enabled | non_binary_field

1           firefox          w7    ...         1            0              yes
2           chrome           w7    ...         1            1              no
3           ie9              wx    ...         0            0              yes

So, I’d like to perform a query with where clauses on any fields, and have it give me counts of js_enabled=1, flash_enabled =0, non_binary_field = ‘yes’ for those criteria (say `os` = ‘w7′ and date(`date_time`) = ’01-08-2012’).

The result would be:

count(js_enabled=1) | count(flash_enabled=1) | count(non_binary_field='yes')
2                     1                        1

Is this possible in a single query?

Thanks!

  • 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-09T01:47:47+00:00Added an answer on June 9, 2026 at 1:47 am
    select sum(js_enabled=1),
           sum(flash_enabled=1),
           sum(non_binary_field='yes')
    from your_table
    where `os` = 'w7'
    and date(`date_time`) = '2012-08-01'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a statistics based application off a SQLite database. There is a table
Is there a way to access Oracle table level statistics in a Java application
I developed an application that gives logged in users an overview of statistics per
How can I get page faults statistics from kernel for my application while it
I just installed Graphite & statsd to get some statistics for my web-application. It
I need to query statistics about duplicate values in my database table. For example,
So I am writing a mac application that parses SF Giants baseball statistics using
I need to share my application statistics via a wcf service. I'm able to
I'm trying to find a source for Facebook Application statistics. I'm most interested in
In my web application i have statistics which shown for each user separately ie.

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.