Forum Discussion
VikasB
Boss
waldemarhelm
Here you go
SELECT login,kudos_received.sum(weight) FROM users ORDER BY kudos_received.sum(weight) DESC
SELECT login,kudos_given.sum(weight) FROM users ORDER BY kudos_given.sum(weight) DESC
steffenschoene
2 years agoExpert
VikasB Thanks for that idea. But this will not be solution for the ViewProfilePage context. What waldemarhelm is looking for is an solution to find those data in relation of an given user. With your LiQILs you will only be able to get those data in community context.
Try this for example and you will always get only one object, the object of the given user.
SELECT login,kudos_received.sum(weight) FROM users WHERE id = '47160' ORDER BY kudos_received.sum(weight) DESC
Do you have any other ideas how to get the kudos_received and kudos_given values for an specific user?
Related Content
- 4 years agoInactive User
- 5 months ago