Re: Records exactly the same. - Mailing list pgsql-sql

From Nils Zonneveld
Subject Re: Records exactly the same.
Date
Msg-id 3B55BDFE.E90C0AAF@mbit.nl
Whole thread Raw
In response to Records exactly the same.  ("Fons Rave" <fonzzz@xs4all.nl>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: TODO List
Next
From: Tom Lane
Date:
Subject: Re: Cast '' (blank) to null date