On Sat, Jul 29, 2006 at 01:37:44PM +0300, Tzahi Fadida wrote:
> 10x,
> Found my answer thanks to Ragnar.
> SELECT DISTINCT ON (a0,a1) a0,a1,ctid FROM t1
>
> To tell the truth, i did not know there was an ON option in SQL.
> This thing is very handy.
There isn't, it's a postgresql extension, albeit a very very useful
one.
Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org>
http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFEy6lrIB7bNG8LQkwRApQXAJ4oY4SRxC+DO9+P6+xTyG whvdF+qQCfaz/d
6QINLiQJxqmIJE+ZA5Byb2Q=
=1YYs
-----END PGP SIGNATURE-----