Posts by Fábio Roberto Teodoro • 142 points
2 posts
-
-2
votes2
answers45
viewsA: A separate city sql query
You will need two queries, one with city='Brasilia' and the other with city<>'Brasilia'. And join the two with UNION.
-
3
votes1
answer160
viewsA: Know the position on a listing
If you are using Postgresql, for example, this function on php is not necessary and you can write an SQL that returns only the author you want, with the ranking and number of comments. With this…