I need to join join General Journal Entry and Vendor Table (I try to recreate the Voucher Transaction Report with BYOD Tables).
Below the current query but I don't found any way to connect to [dbo].[VendVendorV2Staging]
SQL (BYOD Tables)
from [dbo].[zzGeneralJournalAccountEntryReportingStaging] gl
left outer join [dbo].[MainAccountStaging] mac
on left(gl.LEDGERACCOUNT,4) = mac.mainaccountid
left outer join [dbo].[zzTransaction_Type] tt
on gl.postingtype = tt.value
left outer join [dbo].[CustomerPaymentJournalLineStaging] cst
on cst.voucher = gl.VOUCHER

Thanks so much for your help
Cheers
Javier