Forum Discussion
PAULEM
Advisor
Hi Claudius
I had a play with the ranks "table" and this worked:
SELECT * FROM users WHERE rank.id IN ('2','3','4') ORDER BY kudos_received.sum(weight) DESC
While not elegant, maybe this would serve? Assuming "Administrator" has an ID of "1", leaving it out of the list would exclude Administrators from the results.
Claudius
6 years agoBoss
This would be another workaround, but hard to manage since we have 26 ranks right now and I don't want to create a future dependency to update the code any time we change the rank structure. Ideally we should be able to just exclude ranks in the query via negation already.
Related Content
- 2 years ago
- 4 years ago
- 3 years ago
- 4 years ago