fixed single sql agg.