This article offers seven ways to return all tables that have foreign keys in a database in SQL Server.
Each table is returned just once, regardless of how many foreign keys it may have. This is different to returning all foreign keys, along with their tables. If you want to do that, see 11 Ways to Return Foreign Keys in SQL Server.
All examples here query the same database, and therefore return the same result.