I am attempting to create my first query to export the following columns:
Vendor Name, Vendor ID, DocType, VCHRNMBR, Doc Date, GL Account Number, GL ACCTDESCR, Payment Amount.
The goal, is to easily export a full Payables accounting, to easy filter by vendors and/or GL Expense types. To evaluate spend.
I have started the below Query, but so far nothing is populating. Any help with what I might be missing, would be appreciated.
SELECT MC020103.DOCTYPE, MC020103.DCSTATUS, MC020103.VCHRNMBR, MC020103.DOCDATE, MC020103.VENDORID, PM00200.VENDORID AS Expr1,
PM00200.VENDNAME, MC020103.DEX_ROW_ID, GL00100.DEX_ROW_ID AS Expr2, GL00100.ACTDESCR, GL00100.ACTNUMBR_1
FROM MC020103 INNER JOIN
PM00200 ON MC020103.VENDORID = PM00200.VENDORID INNER JOIN
GL00100 ON MC020103.DEX_ROW_ID = GL00100.DEX_ROW_ID
WHERE (MC020103.DOCDATE BETWEEN CONVERT(DATETIME, '2015-01-01 00:00:00', 102) AND CONVERT(DATETIME, '2015-12-18 00:00:00', 102))
*This post is locked for comments