Subject sublect in udf fuction in SP
Author ronaldorezende
Can I do this in stored procedure?

DPM = SQRT( (SOMA / (SELECT COUNT(*) FROM DIARIO_PROVA_ALUNO wHERE
NOTA_PROVA IS NOT NULL))


sqrt is a udf function.