LTIMindtree interview question

Difference between primary and foreign key what is transaction in DB Inheritance types