Change this query: SELECT DISTINCT Skill FROM ratings WHERE User='$F'
MSQL Query
11
Change this query:
SELECT DISTINCT Skill FROM ratings WHERE User='$F'
to order by the count of each distinct value
For example if Skill returns the followng distinct values 2 - 5 - 7
and in the table there are (5)2's - (3)5's - (10)7's
the return order would be 7 - 2 - 5
SELECT DISTINCT Skill FROM ratings WHERE User='$F'
to order by the count of each distinct value
For example if Skill returns the followng distinct values 2 - 5 - 7
and in the table there are (5)2's - (3)5's - (10)7's
the return order would be 7 - 2 - 5
- SteveSRS
- [ 1 ] Thanks
- [2] replies
- KirkMcD
- [ 1 ] Thanks
- wayfarer
- [ 1 ] Thanks
- SteveSRS
- [1] reply
- wayfarer
- abraham26
- weaveronline
- [1] reply
- Don Art
- [ 1 ] Thanks
- [1] reply
Next Topics on Trending Feed
-
11