Re: Simple Query HELP!!!
От
bulk@colonnello.org (Paolo Colonnello)
Тема
Re: Simple Query HELP!!!
Дата
Msg-id
a27df63d.0109230949.4917f46f@posting.google.com
Список
Дерево обсуждения
Re: Simple Query HELP!!! 71062.1056@compuserve.com (--CELKO--)
reb_01501@yahoo.com (Bob Barrows) wrote in message news:<3bad5086.29922681@news.charter.net>... > Do you care about ties? What if Ingrid, 38 yrs old, worked at IBM? > Would you want to show both Ingrid and Maria? If so, this will work: > > Select Name From People t1 Inner Join > (Select Company, Max(Age) As Oldest FROM People > Group By Company) t2 > ON t1.Company = t2.Company AND t1.Age = t2.Oldest > Thanks a lot, the query work perfect! I dont care about ties... this is just the query I need... Bye
В списке pgsql-sql по дате отправления