Simple Query HELP!!!

Поиск
Список
Период
Сортировка
От bulk@colonnello.org (Paolo Colonnello)
Тема Simple Query HELP!!!
Дата
Msg-id a27df63d.0109221818.2347f039@posting.google.com
обсуждение исходный текст
Список pgsql-sql
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,


В списке pgsql-sql по дате отправления:

Предыдущее
От: Haller Christoph
Дата:
Сообщение: Re: is it possible to get the number of rows of a table?
Следующее
От: nospam4@pobox.com (Ross Smith)
Дата:
Сообщение: A simple join question that may stump you