I have 2 tables that say A and B, and I want to join them.
There will always be entries in table A.
When table B has rows in it, I want the query to include all rows in which table A and table B correspond (i.e. behave like an internal join)
However, if table B is empty, I would like to return everything from table A.
Is it possible to do this in 1 query?
Thanks.
source share