DBA > Job Interview Questions > COBOL SQL Interview Questions

My SQL statement SELECT AVG(SALARY) FROM EMP-TAB

More DBA job interview questions and answers at http://dba.fyicenter.com/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 Job Interview Questions