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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:58:16+00:00 2026-06-10T05:58:16+00:00

I am writing a script for a car show. Users choose the car number

  • 0

I am writing a script for a car show. Users choose the car number and vote 1-5 on various criteria. There are multiple users voting for the same car, but they can only vote once for each car, I check for this.

Now I have a table of a unique carNumber and 1-5 votes for each criteria, per car.

Here is how I find the total score for each individual users vote

SELECT carNum, exterior+interior+engine AS Score FROM Judge_Votes WHERE catagory = '$catNum' ORDER BY carNum

Reults 
CarNum: Score:
18  11
14  8
13  15
12  8
12  11
2   14

I want to add up the total score from each user into a final score result. IE car 12 has 19 total score.

The question I have. How can I find the total score using sql or php?

  • 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-10T05:58:18+00:00Added an answer on June 10, 2026 at 5:58 am

    Just use SUM and ORDER BY:

    SELECT carNum, SUM(exterior+interior+engine) AS Score 
        FROM Judge_Votes 
        WHERE catagory = '$catNum' 
        GROUP BY carNum
    

    That should do the “trick”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a script that requires users to choose which parts of the
I'm writing a script to add new users to an OS X system on
I've been writing a script to display the names of users based on whether
I just finished writing this script and getting it to work but I need
I am writing a script which is likely to be modified by users. Currently
I'm writing a script that has to move some file around, but unfortunately it
I'm writing a script in PHP that compares people together based on the number
I’m writing a script to change the UUID of an NTFS partition (AFAIK, there
I am writing a script that edits an XML file with BeautifulStoneSoup , but
I'm writing script in remote.ini The script looks like on 1:start:{ server some.irc.server server

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.