Query Praise!
Query Praise!
От:
Matthew Hagerty <matthew@brwholesale.com>
Дата:
Haha, Tom Lane (and all the pg developers), you ROCK! Thanks a million!!! These kinds of queries save my ass! select sum(score) from (select distinct on (question_id) score from answers where score is not null order by question_id,score) as score; Matthew