Foreign key selects for transaction