📞 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
» If all values in a column are NULL, what does SUM(column) return?
« Back to Database & Data Handling (NCCIA)
If all values in a column are NULL, what does SUM(column) return?
A. An error
C. The number of rows
D. NULL ✅
Correct Answer:
D. NULL
Explanation
SUM of only NULL values returns NULL because there is no value to add.
COUNT(column) in that case returns 0.
« What does AVG(Salary) do with NULL salaries?
Which statement about NULL in a FOREIGN KEY column is… »
Related MCQs
When choosing a primary key, which property is most important?
Which join produces every combination of rows from two tables?
A table Employee(EmpID, DeptID, DeptName) with EmpID as key violates:
Which statement about a database is true?
Which constraint ensures that all values in a column are different?
If (A, B) is a candidate key, what can be said about (A, B, C)?
What does a minimum cardinality of 0 mean on one side of a relationship?
What does NULLIF(10, 10) return?