0
As I should do in this query, where I have a user register, and each user sends several photos to another table, each photo sent receives a score of 1 to 5
I need to bring the 10 with the highest number of points and their respective points
The scoring field is named after picture_photo
SELECT * FROM t_login JOIN t_fotos ON id_login = id_login_foto LIMIT 0,10
I think this doesn’t solve, I think he needs you to sort by the total sum of points that each user has with the photos.
– Bruno Henrique
Exactly @Brunohenrique
– Marcos Paulo
@Giba, yes, with a little adaptation, it worked perfectly, thank you
– Marcos Paulo