Re: - Finding records in sequence

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: - Finding records in sequence
Дата
Msg-id web-815464@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на - Finding records in sequence  ("John Oakes" <john@networkproductions.net>)
Список pgsql-sql
Mr. Oakes,

> I have a table with a few columns, one of which is Pass/Fail.  I want
>  to
> find the most passes in sequence in the table and the most failures
>  in
> sequence in the table.  Is there a function to do this, or will I
>  need to
> create one?  Thanks!

You'll need to create one.  For your sake, I hope that you created thetable with either a timestamp or a serial column
sothat you candetermin the sequence of records.
 

Since your problem is procedural rather than set-oriented in nature,you will have an easier time implementing it in a
proceduralinterfacelanguage (like Perl or C) than in SQL.
 

-Josh


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

Предыдущее
От: "John Oakes"
Дата:
Сообщение: - Finding records in sequence
Следующее
От: Janning Vygen
Дата:
Сообщение: thinking about versioning my database schema