Afternoon all - I'm really getting frustrated at how difficult it is to figure this out (!!).
I have two tables:
Table1: AllMailboxStats
Table2: DisconnectedMailboxes
I want to return 6 columns from Table1 (including 'DisplayName') and 2 columns from Table2 (returning results based on 'DisplayName').
What I would like is for the Query to search and if Table1.DisplayName=Table2.DisplayName then display 'TRUE' else return 'FALSE'. But every time I get close to this, it only pulls out the entries that are in both Table1 and Table2 (i.e. 472 entries, which all show TRUE as opposed to 5000 entries which have a combination of TRUE & FALSE).
One of the examples I tried was below, which didn't work - I presume because I Inner Joined them. But If I don't Inner Join it wont see Table2.
Code:
SELECTiif([allmailboxstats].[displayname]=[disconnectedmailboxes].[displayname],"Deleted","")
FROM allmailboxstats
INNER JOIN disconnectedmailboxes
ON allmailboxstats.displayname = disconnectedmailboxes.displayname