pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nils Zonneveld <nils@mbit.nl>
To: pgsql-sql@postgresql.org
Subject: Re: Records exactly the same.
Date: Wed, 18 Jul 2001 18:49:30 +0200
Message-ID: <3B55BDFE.E90C0AAF@mbit.nl> (raw)
References: <9j4e1g$imb$1@news1.xs4all.nl>



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



view thread (8+ messages)  latest in thread

Message-ID: <3B55BDFE.E90C0AAF@mbit.nl>
Permalink:  ../3B55BDFE.E90C0AAF@mbit.nl/
Also on:    postgresql.org/message-id/3B55BDFE.E90C0AAF@mbit.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: nils@mbit.nl
  Subject: Re: Records exactly the same.
  In-Reply-To: <3B55BDFE.E90C0AAF@mbit.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox