Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What could be the reason that the MySQL statement 'SELECT AVG (SALARY) FROM EMP' generates an inaccurate output?
Home
DB2
What could be the reason that the MySQL statement 'SELECT AVG (SALARY) FROM EMP' generates an...
0
votes
asked
Feb 28
in
DB2
by
john ganales
What could be the reason that the MySQL statement 'SELECT AVG (SALARY) FROM EMP' generates an inaccurate output?
mysql
statement
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 28
by
john ganales
The reason for the statement generating an inaccurate outcome is that SALARY has not been declared to have NULL values and, at the same time, the employees whose salary is not known are also counted.
...