Re: Join query help

Поиск
Список
Период
Сортировка
От novice
Тема Re: Join query help
Дата
Msg-id ddcb1c340708201821o63afa1bcve75509f5d368a53f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Join query help  (Michael Glaesemann <grzm@seespotcode.net>)
Список pgsql-sql
On 21/08/07, Michael Glaesemann <grzm@seespotcode.net> wrote:

> Now here's where I started having trouble. I can't figure out how to
> get 2 observations for week 29 (record_id 1 & 3) and 8 for week 30
> (record_id 2). Assuming the data is wrong (which is admittedly a poor
> assumption), I moved ahead.

> > week_no | count(record_id | count(observation_id) | sum(score_id)
> > where = '1'
> > 2007, 30  |   2   |   8   |   6
> > 2007, 29  |   1   |   2   |   1

For week 29, there were 1 SAFE observation out of the 2 observations and
for week 30, there were 6 SAFE obseravations out of the 8
observations.  Hope this helps.

Thanks!


В списке pgsql-sql по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: Join query help
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: [GENERAL] Join query help