In most cases, each column in the select list should be either contained within an aggregate function (MAX, MIN, AVG etc.), or must be included in the group by list. So your choices are:1. Apply an aggregate function to fun.funded select gen.file_id, MAX(fun.funded) as FundedMax, MAX(gen.loan_amt) as amountfrom gen left join fun on fun.file_id = gen.file_idgroup by gen.file_id
2. Include fun.funded in the group by clauseselect gen.file_id, fun.funded, MAX(gen.loan_amt) as amountfrom gen left join fun on fun.file_id = gen.file_idgroup by gen.file_id, fun.funded
The results would of course be different depending on which option you choose.