I have updated SC & now this sql code in the lookup field isnt working:
I have had more complex lookup SQL code from like 3 tables, concatenating multiple fields
SELECT sc_concat( ClassName , " - ",ClassYear, " - ",Section)
FROM feesstructure, classes
WHERE feesstructure.ClassID = classes.ClassID
ORDER BY ClassName , ClassYear, Section
This same sql code (after removing sc_) works well in mysql server (phpmyAdm)