https://kotlinlang.org logo
s

spand

08/03/2016, 9:42 AM
Its something like this SELECT col1, IFNULL((SELECT avg(rating) FROM ratings WHERE id = items.id), 0) as rating FROM items ORDER BY rating
2 Views