Interview Questions

My SQL statement SELECT AVG(SALARY) FROM EMP-TABLE yields inaccurate results. why?

COBOL SQL Interview Questions


(Continued from previous question...)

My SQL statement SELECT AVG(SALARY) FROM EMP-TABLE yields inaccurate results. why?

Because SALARY is not declared to have Null's and the employees for whom the salary is not known are also counted

(Continued on next question...)

Other Interview Questions