Re: Complex query
| От | Raymond O'Donnell |
|---|---|
| Тема | Re: Complex query |
| Дата | |
| Msg-id | 5339B8D6.2040806@iol.ie обсуждение исходный текст |
| Ответ на | Complex query (Leonardo M. Ramé <l.rame@griensu.com>) |
| Список | pgsql-general |
On 31/03/2014 19:38, Leonardo M. Ramé wrote: > Hi, I'm looking for help with this query. > > Table Tasks: > > IdTask StatusCode StatusName > ---------------------------------- > 1 R Registered > 1 S Started > 1 D Dictated > 1 F Finished > 1 T Transcribed > ---------------------------------- > 2 R Registered > 2 S Started > 2 T Transcribed > 2 F Finished > > As you can see, I have a table containing tasks and statuses. What I > would like to get is the list of tasks, including all of its steps, for > only those tasks where the StatusCode sequence was S followed by T. How do you know the sequence in which the statuses occurred? Is there another column with a timestamp or something? Ray. -- Raymond O'Donnell :: Galway :: Ireland rod@iol.ie
В списке pgsql-general по дате отправления: