Accounting Tables on SAGE X3

Hi Guys,

Please how do I relate the tables GACCENTRY, GACCENTRYA and GACCENTRYD together in sql correctly.

I have been stuck trying to do this.