vendor name relationship

Hello,

In ax2012

I want to fetch 2 field ‘[ACCOUNTNUM]’ from [VENDTABLE] table and ‘name’ from DIRPARTYTABLE table into a single query, what is relationship in both table???