- Finding records in sequence
- Finding records in sequence
От:
"John Oakes" <john@networkproductions.net>
Дата:
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! John Oakes
Re: - Finding records in sequence
От:
"Josh Berkus" <josh@agliodbs.com>
Дата:
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 so that 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 procedural interfacelanguage (like Perl or C) than in SQL. -Josh