Problem with phone list.

Поиск
Список
Период
Сортировка
От Mike Diehl
Тема Problem with phone list.
Дата
Msg-id 200708151428.17740.jdiehl@sandia.gov
обсуждение исходный текст
Ответы Re: Problem with phone list.  ("Rodrigo De León" <rdeleonp@gmail.com>)
Re: Problem with phone list.  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
Re: Problem with phone list.  (Richard Broersma Jr <rabroersma@yahoo.com>)
Re: Problem with phone list.  (Michael Glaesemann <grzm@seespotcode.net>)
Список pgsql-sql
Hi all.

I've qot a problem I need to solve.  I'm sure it's pretty simple; I just can't 
seem to get it, so here goes...

I've got a table, actually a view that joins 3 tables, that contains a phone 
number, a unique id, and a call duration.

The phone number has duplicates in it but the unique id is unique.

I need to get a list of distinct phone numbers and the coorisponding largest 
call duration.

I've got the idea that this should be a self-join on phone number where 
a.id<>b.id, but I just can't seem to get the max duration.

Any hints would be much appreciated.

Mike.



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

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Boolean without default declared
Следующее
От: "Rodrigo De León"
Дата:
Сообщение: Re: Problem with phone list.