Let's say I have a database with only 50 tables.
In the structure, I have several links, several foreign keys.
Is there a way, how to make a query that brings up the amount of dependencies of all the bank tables ?
For example:
- Table ZZZ has FK of table XXX and YYY
- Table XXX has FK from the WWW table
- The WWW table does not have FK
Expected result:
tabela | dependencias
ZZZ | 2
XXX | 1
WWW | 0