How to create an sql query for 2 tables with X(a)PK ==> Y(a)FK and X(b)FK <== Y(b)PK.Is it a good approach to do like that,
https://ibb.co/XDymWr7
This i