Skip to Content
author's profile photo Former Member
Former Member

how to add different numeric fields

hai,

How to sum the different numeric fields like eno,esal and dno for a table EMP between eno= 51 to 57 of 100 records.

Please provide the code for this.

regards,

bhargav.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 26, 2005 at 02:50 PM

    Hi,

    this is not the right place for such questions, be sure to look for the appropriate forum.

    I also saw that you posted the same question in multiple forums - this is not something appreciated here, please do not do this again in the future. Look for the right forum, and post only one thread with the same question.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 08:28 PM

    hi,

    first, i fully agree with Max. Wrong forum!

    second, hard to understand what you want to do, but if you want to sum up the colummns for all rows where eno between 51 & 57 try this:

    data: sum_eno type i, sum_esal type i, sum_dno type i.

    select sum( eno ) sum( esal ) sum( dno )

    from EMP into (sum_eno, sum_esal, sum_dno)

    where eno between 51 and 57.

    regards,

    anton

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.