for example I have two tables , A and B , I want that we can\'t add a data to B if it doesn\'t exist already in A .
Alter table B ADD CHECK (.....);