pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bulk@colonnello.org
To: pgsql-sql@postgresql.org
Subject: Simple Query HELP!!!
Date: 22 Sep 2001 19:18:10 -0700
Message-ID: <a27df63d.0109221818.2347f039@posting.google.com> (raw)

Hello, I have the following, A table call People with 3 fields AGE
(Int) NAME (Txt) COMPANY (TxT) and I want to create a query than get
me a list with the seniors per company, for example :

table PEOPLE

NAME   AGE   COMPANY
Bob     33      Acme
Jane    30      Acme
Bill    20      Acme
Jose    56     ATech
Siu     40     ATech
Paolo   28       IBM
Maria   38       IBM

I need a query than will return a list with the seniors per company
like

Bob
Jose
Maria

Is there a way to do this with one query?

Please help,



view thread (5+ messages)  latest in thread

Message-ID: <a27df63d.0109221818.2347f039@posting.google.com>
Permalink:  ../a27df63d.0109221818.2347f039@posting.google.com/
Also on:    postgresql.org/message-id/a27df63d.0109221818.2347f039@posting.google.com

 · 

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: bulk@colonnello.org
  Subject: Re: Simple Query HELP!!!
  In-Reply-To: <a27df63d.0109221818.2347f039@posting.google.com>

* 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