Обсуждение: Query Praise!

Поиск
Список
Период
Сортировка

Query Praise!

От
Matthew Hagerty
Дата:
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