There is a column Salary in a Table EMPLOYEE. The following two statements are giving different outputs. What may be the possible reason? SELECT COUNT(*) FROM EMPLOYEE; SELECT COUNT(SALARY) FROM EMPLOYEE; This question asked in exam but I am not getting any difference even if I left salary of 1 employee blank
YES I got answer If salary column is defined as NULL and then if any employee's salary is missing then count will skip those null valued record. I got this from http://cbsecsnip.in