From: | Nils Zonneveld <nils(at)mbit(dot)nl> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Records exactly the same. |
Date: | 2001-07-18 16:49:30 |
Message-ID: | 3B55BDFE.E90C0AAF@mbit.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2001-07-18 18:18:55 | Re: [SQL] What is the syntax turn off auto commit? |
Previous Message | Fons Rave | 2001-07-18 16:37:49 | Records exactly the same. |