I have 20 schemas that follow an ending pattern depending on the office, that is the name of the office followed by '_finance', '_security' etc and it would something like this:
- new_york_office_finance
- boston_office_finance
- new_york_office_security
- boston_office_security
- etc
In addition, all the tables inside the schemas have the same table names.
- staff
- logistics
- Etc
How can I select only the schemas that end in '_finance' and the tables 'logistics' from all those schemas?