Avoid tables not involved in a Foreign Key (SQL Server) | CAST Appmarq