Re: tubles matching

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: salah jubeh <s_jubeh(at)yahoo(dot)com>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: tubles matching
Date: 2011-09-28 21:37:02
Message-ID: DC19E682-70CF-4874-847D-6EBDB2607385@seespotcode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Sep 28, 2011, at 7:19, salah jubeh wrote:

>
>
> Hello,
>
> I have two views both contain identical column names , order and types except the primary keys. I want to match these two views - return the pk pair of the rows which match from these views - by comparing all the column values. I want to write a pgplsql function to do this Job by iterating through all the coloumns and compare the values.
>
> Is there another way to do that ?

SELECT * FROM a NATURAL JOIN b;

Michael Glaesemann
grzm seespotcode net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message planas 2011-09-28 21:46:54 Re: Help needed in Search
Previous Message Merlin Moncure 2011-09-28 20:37:12 Re: Rules going away