In below query I am getting error after HAVING
clause. Any help will be appreciated. Thanks in advance.
Select round(TaxableAmount,0) as t, round(((TaxValue*100)/TaxPercentage),0)as t2 from VoucherTaxDetail where
TaxPercentage<>0 and TaxableAmount>0 and TableName in('TVPayment','Payment') group by transactionId having t<>t2