Here is my code so far: Code:SELECT po.vendorcontact, po.vendorso, po.vendorid,customfieldview.info, /*Ship To*/ po.shiptoname, po.shiptoaddress, po.shiptocity, shipState.code AS shiptostate, po.shiptozip, shipcountry.name AS shiptoCountry, /*Bill To*/ po.remittoname, po.remitaddress, po.remitcity, billstate.code AS billtostate, po.remitzip, billcountry.name AS billtocountry, SUM(poitem.totalcost) AS totalcost, po.note, po.id AS recordid, po.totalTax AS totalTax,COALESCE(UPPER(sysProperties.sysValue), 'US') AS qbVersionFROM po INNER JOIN poitem ON po.id = poitem.poid LEFT OUTER JOIN stateconst AS shipState ON po.shiptostateid = shipState.id LEFT OUTER JOIN stateconst AS billState ON po.remitstateid = billState.id LEFT OUTER JOIN countryconst AS shipCountry ON po.shiptocountryid = shipCountry.id LEFT OUTER JOIN countryconst AS billCountry ON po.remitcountryid = billCountry.id LEFT OUTER JOIN sysProperties ON sysProperties.sysKey = 'QBVersion' AND UPPER(sysProperties.sysValue) = 'AU' LEFT OUTER JOIN customfieldview on po.id = customfieldview.recordid and customfieldview.cftableid = 397076832 and customfieldview.cfname = 'Approved Date mm/dd/yyyy'WHERE po.num = '10010'GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,20,21