I have three tables AA, BB and CC. BB and CC has one to one mapping to table AA ( with foreign key column : aa_id in both tables). Provided one condition that only either BB or CC can have reference to a row of table AA.I have three tables AA, BB and CC. BB and CC ha