📞 0339-0387701 (WhatsApp)
Contact
☰
🔍
Home
Important MCQs
Computer
Current Affairs
Data Science & AI (NCCIA)
Database & Data Handling (NCCIA)
English
Everyday Science
General Knowledge
General Science
Information & Networking (NCCIA)
Islamic Studies MCQs
Maths MCQs
Pak Study
Pedagogy
Software Engineering (NCCIA)
Telecom / Electrical Fundamentals (NCCIA)
Urdu MCQs
Past Papers
ASF Past Papers
FIA Past Papers
FPSC Past Papers
NCCIA Past Papers
NTS Past Papers
PPSC Past Papers
Latest Jobs
Army Jobs
Education Department
Federal Govt Jobs
Health Department
Police Jobs
Sindh Govt Jobs
Resources
About Us
Contact
🔍
Home
» What does AVG(Salary) do with NULL salaries?
« Back to Database & Data Handling (NCCIA)
What does AVG(Salary) do with NULL salaries?
A. Raises an error
B. Returns NULL for the whole table
C. Counts them as zero
D. Ignores them in both sum and count ✅
Correct Answer:
D. Ignores them in both sum and count
Explanation
AVG ignores NULL values entirely.
If NULLs were counted as zero the average would be wrongly lowered.
« Which aggregate function ignores NULL values?
If all values in a column are NULL, what does… »
Related MCQs
Which relationship always involves total participation on the weak entity side?
A table has candidate keys (ID) and (Email). What is (ID, Email)?
If a university allows a student to enrol in many programmes and a programme to admit many students, but stores the link directly as a multi-valued attribute, what is the modelling error?
What is a warm backup site in disaster recovery?
What is media failure in a database?
Which integrity is enforced by NOT NULL on a primary key?
Which of the following tables most needs a composite key?
In an ER diagram, how is partial participation usually shown?