What is the correct syntax to do something like the following?
FUNCTION GetStudentCount
LPARAMETERS tnCourseID
SELECT COUNT(*) FROM v_students WHERE iCourseID = tnCourseID INTO ARRAY aStCount
RETURN aStCount(1,1)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.