Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Prioritised table query

$
0
0

I’m looking for a way to query two tables at once but …

I want the query to first run against Table A and then if Table A returns no matching records to query Table B. There many well be instances of both Table A and B containing the same data but as far as I am concerned Table A for any duplicates would be regarded as the master data.

My problem is that I don’t know if this is possible and if it is what the name of this sort of query is called, so I’ve not be able to first hit Google to get some background reading done.


Viewing all articles
Browse latest Browse all 1138

Trending Articles