On 05/08/2017 02:56 PM, Patrick B wrote:
Hi guys,
I have two tables that supports the same data, but different table DDL
(We are migrating all the data from one to another).
What I need is basically:
1. Query looks for the data on table A,
2. if it doesn't find it on table A, go look for it on table B
Now, how could I do that in a Select? Can you please provide some examples?
If you can provide some information:
1) The table schema
2) How the data is related between the two tables.
I'm using PostgreSQL 9.1.
Thanks
Patrick
--
Adrian Klaver
adrian.kla...@aklaver.com
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general