i have below 3 tables
Table A: Table B: Table C: id TableA id(foreign key) id type TableC id(foreign key)