Results 1 to 3 of 3

Thread: Sum Function

  1. #1
    Join Date
    Aug 2015
    Posts
    1

    Unanswered: Sum Function

    Hi ,
    am fresher for sql, i want to know how to sum amount based on branch..

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    It works well

    SQL> select deptno, sum(sal) from emp group by deptno;

    DEPTNO SUM(SAL)
    ---------- ----------
    30 9400
    20 10875
    10 8750

    SQL>
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Jun 2004
    Location
    Liverpool, NY USA
    Posts
    2,509
    kumar085, please acknowledge that Anacedent's solution worked. It's the right thing to do.
    Bill
    You do not need a parachute to skydive. You only need a parachute to skydive twice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •