Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SUM returns NULLs

Saad NayefJun 18 2012 — edited Jun 30 2012
Hi,
I have a query which returns 7 rows of NUMBER values. I put this query as sub-query which returns SUM of this 7 rows, simply:
select sum(x)
from (........the query that returns 7 rows of NUMBER values........)

the result should be one row with sum of seven rows, but it returns seven empty rows -NULLS-.

What can be the problem?


Saad,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2012
Added on Jun 18 2012
15 comments
5,790 views