Foreign keys analysis