In response to Craig Ringer : > I don't understand what you want based on your description and your > example results. What do you mean by "if the column `b' have the same > value" ? Additionally, don't hijack other threads by answer to an old message and changing the subject. Your eMails contains a references-header for a old thread, because ot this, your mail occurs in a foreign thread. Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general