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!

What kind of input parameter is used in SUM function?

BS2012Mar 6 2013 — edited Mar 7 2013
Hi Everyone,
As we know sum is a predefined oracle function. But what these oracle guys have used for the input parameters. How they have done this?
I mean we can write this sum fuction like so many ways like as mentioned below. Please give me some ideas how to do that.
SELECT SUM(salary) as "Total Salary" FROM employees;

SELECT SUM(DISTINCT salary) as "Total Salary" FROM employees;

SELECT SUM(income - expenses) as "Net Income" FROM gl_transactions;

SELECT SUM(sales * 0.10) as "Commission" FROM order_details;
Regards,
BS2012
This post has been answered by BluShadow on Mar 6 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2013
Added on Mar 6 2013
16 comments
601 views