Re: Records exactly the same.

Поиск
Список
Период
Сортировка
От Nils Zonneveld
Тема Re: Records exactly the same.
Дата
Msg-id 3B55BDFE.E90C0AAF@mbit.nl
обсуждение исходный текст
Ответ на Records exactly the same.  ("Fons Rave" <fonzzz@xs4all.nl>)
Список pgsql-sql

Fons Rave wrote:
> 
> I'm writing a program in Delphi.
> In SQL I'm a beginner.
> 
> I have a file in which there are records with what people have done. In the file
> are records with name, date, what they have done, time-length, etc. It is
> possible that there are two records that are exactly the same (somebody has done
> the same, on the same day for one hour). If I use a SELECT with GROUP on a list
> with some records that are exactly the same, only ONE of the identicals is
> shown. But I want to see them all.
> 
> It probably is possible; but how ?
> 

First give us some information on your table structures. But it could be
something like:

select   person, activity, sum(hours)
from     activities
group by person, activity


Groet,

Nils
-- 
Alles van waarde is weerloos
Lucebert


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: TODO List
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Cast '' (blank) to null date