Long story short, I'm trying to write a SQL query to select ALL the appointments, but based on how the databases are split up into the mailbox groups, I'm not quite sure how I'd accomplish this. It has to be done with a query because of our analytics software that will be connecting to it.

Does anyone have an idea on how I'd do this, or if you can point me in the right direction it'd be greatly appreciated. Thanks.