[ create a new paste ] login | about

Link: http://codepad.org/gbMSEgni    [ raw code | fork ]

Plain Text, pasted on Apr 14:
1
2
3
4
SELECT ratingTable.ratingSum, posts.*
  FROM (SELECT SUM(rating) AS ratingSum FROM votes) AS ratingTable
  INNER JOIN posts
WHERE ratingTable.ratingSum > 10


Create a new paste based on this one


Comments: