Jump to content
  • 0

SQL command COUNT in existing command


Question

Posted (edited)

Hi,

 

I want to count all points from table character_raid_points for same charId

 

Example: I have 100 records for charID: 11111 and in every records has different int points for kill RB.

 

So I need to COUNT all RBs points per charId
 

"SELECT characters.char_name,character_raid_points.charId, character_raid_points.points FROM character_raid_points, characters WHERE character_raid_points.points AND characters.charId = character_raid_points.charId ORDER BY points DESC LIMIT 10;"


This command now generate CharId and points pet one row ( i mean per one kill RB )  - so Need to count all to one INT
 

Edited by Vision

2 answers to this question

Recommended Posts

  • 0
Posted
On 11/21/2022 at 12:35 AM, wongerlt said:

Group it by char id and select like sum(character_raid_points.*) as scores and join char table to select char name


Thank you, already done 🙂

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock