From: Otniel Michael <otnieltera@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Ask About SQL
Date: Wed, 19 Aug 2009 17:17:07 +0700
Message-ID: <1703cd180908190317p3b1c4140hc9cbe41331c0725e@mail.gmail.com> (raw)
Hi All.
Can help to create sql queries for this data :
tabel A
field1, field2, field3
x1, y1, 5
x1, y2, 1
x2, y1, 2
x2, y3, 4
x1, y3, 4
I want to get 2 record with the max value at field3 for each kombination of
field1 :
tabel B
field1, field2, field3
x1, y1, 5
x1, y3, 4
x2, y3, 4
x2, y1, 2
Anyone have an ideas?
Thanks anyway.
--
-------------------------------------------------------------------
"He who is quick to become angry will commit folly, and a crafty man is
hated"
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: otnieltera@gmail.com
Subject: Re: Ask About SQL
In-Reply-To: <1703cd180908190317p3b1c4140hc9cbe41331c0725e@mail.gmail.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