This is the function generated in SQL, I want to include c.bkg_no, c.cntr_no, c.cntr_tpsz_cdm on GROUP BY below but I can’t do this because this GROUP BY is generated automatically.
I cannot do this either because it’s not correct and the errors would appear when running.
How can I solve this problem?