Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6KGtsa96400 for ; Fri, 20 Jul 2001 12:55:54 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6IH17a52409 for ; Wed, 18 Jul 2001 13:01:07 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f6IGntK88737 for pgsql-sql@postgresql.org; Wed, 18 Jul 2001 12:49:55 -0400 (EDT) (envelope-from news) From: Nils Zonneveld X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Records exactly the same. Date: Wed, 18 Jul 2001 18:49:30 +0200 Organization: Nilsies little old network Lines: 31 Message-ID: <3B55BDFE.E90C0AAF@mbit.nl> References: <9j4e1g$imb$1@news1.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@cistron.nl X-Mailer: Mozilla 4.75 (Macintosh; U; PPC) X-Accept-Language: nl,en To: pgsql-sql@postgresql.org X-Archive-Number: 200107/281 X-Sequence-Number: 4079 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