Compute sum of two columns - display result in the third column

Hello,
I have a report and I want to compute sum of two report columns and display the total in the third column.
For example: Sample_My_Report
Col1 Col2 Total (Col1+Col2)
3 7 10
can anyone help me out with this issue.
thanks.

thanks for replying. One more thing is that
How can I compute Avg for a particular column in a Master detail report. I need the avg(sal) to be displayed at the end of the report similar to sum(reports total).
Can you help me out with this issue.
thanks.

Similar Messages

  • Two very different results using the same settings (H.264 / Quicktime Pro)

    I’m a bit confused, I have used Quicktime Pro (v7.1) to encode DV into H.264 for iPod and this particular video is 18 minutes long and came out looking very good with the following settings;
    VIDEO: H.264 at 200kbps, Baseline Profile, 25fps, Auto Key Frames, 320x240 or 640x480, Multipass Best quality encoding.
    AUDIO: AAC Audio at 96kbps, 24kHz sampling freq, Stereo.
    However here is the twist…
    When I use the same exact settings to encode just the 30 second opener (from the 18 minute video) the encoded opener looks bad and blocky!
    Why? Same settings would make you assume that you should get a same or similar result, or am I wrong?
    The reason I have tried encoding this 30 second opener is that I am trying to work out which settings work best on the iPod (another issue) and I don’t want to spend hours test encoding the full 18 minute video, as you know H.264 is SLOW to encode!
    So can anyone help in regard to two very different results using the same settings?
    Regards,
    J
    PC   Windows XP  

    Alvin,
    Is it a commercially-released or home-burned CD?
    If it's commercially-released, try "encouraging" the recalcitrant computer by using the iTunes Advanced menu > Get CD Track Names command when it shows Audio CD.
    If it's home-burned, you will find that only the computer that actually burned the disc will know what's on it. The information won't be transferred to another computer.
    Let us know which, if either, of these situations applies to you.

  • Mixed bag  1.     I have a security app on my computer, Flashbrief.  I have it checked in the hide column but whenever I turn on the computer it appears in the top menu line.  2.     Whenever I turn on the computer, a new blank document window in MS Word

    mixed bag
    1.         I have a security app on my computer, Flashbrief. I have it checked in the hide column but whenever I turn on the computerit appears in the top menu line.
    2.         Whenever Iturn on the computer, a new blank document window in MS Word 2011 appears.  I do not have this listed in the login items.
    3.         I have a current model of Apple wireless mouse. It keeps getting stuck in text or e-mails and I have to somehowotherwise move the cursor to break it free.
    Help with any of these will be appreciated.
    BF

    1.         I have a security app on my computer, Flashbrief. I have it checked in the hide column but whenever I turn on the computerit appears in the top menu line.
    I've never heard of this software, and cannot find any reference to it online, which is a bit concerning.  What is it supposed to do?  There really isn't much need for security software on a Mac.
    2.         Whenever Iturn on the computer, a new blank document window in MS Word 2011 appears.  I do not have this listed in the login items.
    In Mac OS X 10.7, any applications left open when you shut down or restart are re-opened at startup, and any documents left open in an app when you quit are re-opened when you launch them again.  The former can be controlled by unchecking the box in the restart/shutdown alert:
    You will need to do this each time you shut down or restart, it won't remember that setting.
    The latter can be deactivated by unchecking the box in System Preferences -> General:
    3.         I have a current model of Apple wireless mouse. It keeps getting stuck in text or e-mails and I have to somehowotherwise move the cursor to break it free.
    That does not sound normal, but I don't use a mouse with my MBP, so I can't provide a solution, other than to try replacing the batteries in the mouse.

  • I am setting up a Numbers table for gas milage using one column for gallons divided by the next column of miles and having the answer in the third column in miles per gallon.

    I am setting up a Numbers table for gas milage using one column for miles and the next column for gallons, the two to be divided to produce the third column of miles per gallon and am unable to find out how to do that.  Add and/or subtract, yes, but not to divide.

    ...and results in yield signs indicating an error:
    Hi Wayne,
    Yield signs must be different in Texas. Here (and in much of the rest of the world) they're white with a red border, and installed with an apex pointing down:
    Some still include the word "Yield" (or in Quebec, "Cedez"in black letters.
    Maybe you're thinking of the "Warning triangle", which is similar, but installed base down, and often including a symbol in the white space:
    These are more common in Europe, with the exception of the portable version, which I've seen used at road construction sites or as 'flares' to warn of a disabled vehicle on the road.
    Or maybe you were thinking of this
    (Most of these 'slow moving vehicle' triangles have an orange center. This one looked a bit more 'Texas,' though.)
    Cheers,
    Barry

  • How to display result in the same portlet

    Hi,
    I've a dynamic page with some links in there. I want to display the results of the links in the same portlet. Can anyone please let me know how can I achieve this?
    Thanks in advance.
    Regards,
    Jatinder

    You can check in portalstudio.
    Pls see Re: probem with databse connection using OCI driver

  • Tha same result after the third run ?

    Hi everybody,
    I have table with about 500 000 records. I typed followed SELECT and I receive the same result only after the third run (immediate after start of database). How is this possible?
    SELECT DISTINCT
    id_subject,
    name AS subject_name,
    id_state,
    scale
    FROM table1
    WHERE id_state = 16
    ORDER BY scale;
    Table table1 contains something like that:
    id_subject name id_state scale
    1 first 16 8
    1 first 16 8
    2 second 16 8
    2 second 16 8
    3 third 16 7
    3 third 16 7
    4 four 5 7
    There are another columns in the table1 which contain no duplicate data.
    When I type
    ALTER SYSTEM FLUSH SHARED_POOL
    the situation repeats.
    Regards
    Matus

    Hi,
    these are examples of results:
    The first
    id_subject name id_state scale
    506496 B-KONTAKT 31 11
    505627 APS 31 11
    514006 Kasaloq 31 11
    518615 ROSTEQ 31 11
    508037 POPCO 31 11
    The second
    id_subject name id_state scale
    506422 ARCADE 31 11
    505697 TVAR 31 11
    514206 LITES 31 11
    518715 SANELA 31 11
    528037 AZP 31 11
    OS MS Windows Vista Version 6.0.6000, and also MS Windows Server 2000
    Oracle 10.2.0.3.0
    client PL/SQL Developer.
    but the same behaviour I have on the machine:
    OS MS Windows Server 2000
    Oracle 10.2.0.1.0
    client PL/SQL Developer.
    Regards,
    Matus

  • Changing a datagrid column image according to the datagrid column value

    Flash Builder 4.5 / SDK 4.5.1.
    Fairly new to Flash Builder & Flex
    Application targets tablets so it's a "mobile" project.
    Been beating my head up against the wall on trying to figure out how to do this. Watched videos on Lynda.com.  Read Adobe "docs" till my eyes glaze over.  Takes me about 2 lines of code in my corresponding .NET project doing the same thing.....
    Tried numerous examples.  Inline rendering, external rendering files per the examples.
    I have a response field in the database and corresponding column in the s:datagrid.  If the "reportInfoResponse" field is null (not answered), show an image with a question mark.  If yes show an image with "Yes" on it.  Same for a no answer.
    I get errors of:
    1120:Access of undefined property negativeAnswer.
    1120:Access of undefined property affirmativeAnswer
    1120:Access of undefined property reportInfoResponse
    1120:Access of undefined property showResponseImage
    If I put this in an external rendering file I also get an error where it can't access the datafield (reportInfoResponse).  I've tried data.reportInfoResponse, {data.reportInfoResponse}, {reportInfoResponse} and just plain reportInfoResponse the external rendering file with no luck.  I've tried single and double quotes around Y and N.  According to all the examples (not to say there aren't more!), I should be able to reference data.reportInfoResponse in the external file and things should be fine.  Of course, the examples are bare bones code and I don't have a clue if any importing of classes or other items need to take place.  I never see any references of such.  The examples also show the image embedding and changing the image by using imageID.source=...  In my code it tells me it can't find it.
    I have put (ERROR HERE...) on the lines where I'm getting the error messages.  I've eliminated a lot of database scripting and such cause that's all working. 
    Any and all suggestions would be appreciated as I'm pulling out what little hair I have left.......and that's not much at my age........  And yes, I probably could do it by just show text in the column, but that's not what the customer wants... There are other columns I need to do this for so I figure if I can get 1 done and working, the rest are a snap.  I CAN use inline or external rendering to show an image.  It's the changing it that is the catch.........
    Thanks in advance!
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    creationComplete="onCreationComplete()"
    title="{whichCategoryName} > {whichSubCatName} > Questions">
    <fx:Script>
    <![CDATA[
    import com.adobe.serializers.utility.TypeUtility;
    import flash.data.SQLConnection;
    import flash.data.SQLMode;
    import flash.data.SQLResult;
    import flash.events.StatusEvent;
    import flash.filesystem.File;
    import flash.net.URLRequest;
    import flash.net.URLVariables;
    import flash.net.navigateToURL;
    import flashx.textLayout.tlf_internal;
    import mx.collections.ArrayCollection;
    import mx.core.BitmapAsset;
    import mx.events.FlexEvent;
    import spark.events.GridEvent;
    import spark.events.IndexChangeEvent;
    ...(lots of database coding left out here)
    <s:DataGrid id="showQuestions" width="100%" height="100%"
    creationComplete="Grid_creationCompleteHandler(event)" fontFamily="_sans"
    gridClick="gridClickEvent(event);" horizontalScrollPolicy="off"
    selectionColor="#8AD8EF" selectionMode="singleRow" sortableColumns="false"
    variableRowHeight="true" verticalCenter="middle">
    <s:columns>
    <s:ArrayList>
    <s:GridColumn visible="false" dataField="id_report" headerText="id_report" resizable="true" sortable="false"></s:GridColumn>
    <s:GridColumn visible="false" dataField="id_question" headerText="id_question" resizable="true" sortable="false"></s:GridColumn>
    <s:GridColumn id="col_reponse" visible="true" dataField="reportInfoResponse" headerText="Response" resizable="true" sortable="false">
    <s:itemRenderer>
    <fx:Component>
    <s:GridItemRenderer>
    <fx:Script>
    <![CDATA[
    [Embed(source="assets/unknown.png")]
    [Bindable]
    public var unknownAnswer:Class;
    [Embed(source="assets/yes.png")]
    [Bindable]
    public var affirmativeAnswer:Class;
    [Embed(source="assets/no.png")]
    [Bindable]
    public var negativeAnswer:Class;
    (ERROR HERE - 1120:Access of undefined property reportInfoResponse)
    if(reportInfoResponse == "Y")
    (ERROR HERE - 1120:Access of undefined property showResponseImage)
    showResponseImage.source = affirmativeAnswer;
    (ERROR HERE - 1120:Access of undefined property reportInfoResponse)
    if (reportInfoResponse == "N")
    (ERROR HERE - 1120:Access of undefined property showResponseImage)
    showResponseImage.source = negativeAnswer;
    ]]>
    </fx:Script>
    <s:Image id="showResponseImage" source="{unknownAnswer}" verticalCenter="0" horizontalCenter="0"/>
    </s:GridItemRenderer>
    </fx:Component>
    </s:itemRenderer>
    </s:GridColumn>
    <s:GridColumn id="col_question" visible="true" dataField="question" headerText="Question" resizable="true" sortable="false"></s:GridColumn>
    </s:ArrayList>
    </s:columns>
    <s:AsyncListView list="{showTheseQuestions}"/>
    </s:DataGrid>
    </s:View>

    Ioan Thanks for the reply.
    Probably my previous explanation of the problem was a little incomplete. Let me give a better description.
    The situation is something like this.
    I have a requirement in which the customer wants the column header to reflect the 'keep filter value' restriction that he does dynamically in the query report.
    i.e:
    -- usually the kf column header shows 'sales volume'
    -- column header with text variable of the Calender year / month variable -- 'sales volume for 2000 oct'
    -- but when the report is run, if the user wants to go and change the filter:   calender year / month > rt clk > keep filer value > select Jan 2003.
      The kf column header still shows 'Sales Volume 2000 Oct'
    How to make the column header change to 'sales volume for Jan  2003' ?
    Any suggestions greatly appreciated.
    Thanks,

  • Why is Docs to go allowed to be sold as being able to function on IPAD3. The columns were blleding into the next column header and could not be accessed. Going into one cell gave me the forumula 4 cells down. Absolute rubbish. Moved to Quick Office PRO HD

    I purchased Docs to GO Premium as it was suppose to work on IPAD 3. On loading a spreadsheet the columns under the header columns (ABC etc) started to blled into the next column. It does not work on IPad 3.
    I swithced to Quick Office Pro HD. Absolutely fantastic App. I would love to get my money back for Docs to Go Prem (Rubbish)

    Send your complaints to the developer. This is not the venue for them.

  • How do I Stretch the third column in a treetable?

    Well the title says it all. I am using Jdeveloper Studio Edition Version 11.1.1.0.2 and I want to stretch the 3. column of a treetable. How do I do that?

    Hi,
    reading the component type documentation helps. Here is what it has to say:
    Property: columnStretching
    Indicates what kind of stretching you want applied to the columns. For optimal performance, use the "none" (default) option. If you want the last column to stretch to fill up any unused space inside of the viewport, use the "last" option. If you want to have an empty blank column be automatically inserted and have it stretch (so the row background colors will span the entire width of the table), use the "blank" option. If you want to have a specific leaf (non-group) column stretch to fill up any unused space inside of the viewport, use the option where you specify "column:" followed by the ID of the column that you want to have stretched, e.g. "column:myColId". Note that row headers and frozen columns will not be stretched because doing so could easily leave the user unable to access the scrollable data body of the table. Only a maximum of one column may be stretched at a time.
    Frank

  • Extract two rows when two codes are stored in the same column

    I have a column like this
    American Indian or Alaska Options
    XCK,XON
    I want to be able to insert to records for this pidm (primary key)
    this is how it is in the table
    SZSCAPL_APPLICANT_ID     SZSCAPL_AMER_INDIAN_ALASKA_OPT
    5666090                                      XCK,XONso I need to be able to extract one ROW for XCK, and another row for XON, so I can insert two records in the GORPRAC table
    for an speific record in a column, I want to be able to select two records for this person in a select staement, so I can inserted two records in another table
    I need to be able to display two records
    I got this code, but it is not working...
    INSERT INTO general.gorprac
                            (gorprac_pidm, gorprac_race_cde, gorprac_user_id,
                             gorprac_activity_date, gorprac_data_origin
                            SELECT spriden_pidm,
                             DECODE (szscapl_amer_indian_alaska_opt,
                            'XAN', 'N1',
                            'XCW', 'N1',
                            'XCH', 'N1',
                            'XCK', 'N1',
                            'XNV', 'N1',
                            'XSX', 'N1',
                            'XON', 'N1'),
                            p_user,
                            sysdate,
                           'Common App Load'
                        FROM saturn_midd.szscapl, saturn.spriden
                        WHERE spriden_id = szscapl_applicant_id
                        AND spriden_ntyp_code = 'CAPP'
                        AND szscapl_amer_indian_alaska_opt IN ('XAN','XCW','XCH','XCK','XNV','XSX','XON')
                        AND NOT EXISTS
                           (SELECT * FROM GORPRAC
                             WHERE GORPRAC_PIDM = SPRIDEN_PIDM
                            AND spriden_ntyp_code = 'CAPP'
                            AND GORPRAC_RACE_CDE = 'N1'); Edited by: peace4all on Sep 10, 2009 3:19 PM

    Learn about Oracle insert statements.
    http://www.morganslibrary.org/reference/insert.html
    It can be done with:
    INSERT ALL
    INSERT WHEN
    INSERT ALL WHEN
    and
    INSERT FIRST WHEN

  • Two statements, get results from the first statement?

    Ok maybe I made it sound a little harder than it is, but this is what I am trying to do. I have a result set from from a database call when I pass in the username and password . In the 1st call I get the Users info: User_ID, first_name, lastname, etc...
    But I either need to get info from the first statement, and pass it to the 2nd statement or just do two statement calls calling the same info and passing it to my user object? I dont know which if any is faster, or better. The only thing I need from the first statement is the user_id. In the 2nd statement I need the user_id to find out the user permissions.
    Here is the original code when It was getting the user info and permissions from the same table. try
               dba = new DbAccess();
               java.sql.Connection con = dba.getConnection();          
    java.sql.DriverManager.getConnection("jdbc:oracle:thin:@kares:1523:appd","user","pass");  
               ps = con.prepareStatement("SELECT USER_ID, LAST_NAME, FIRST_NAME, LOGIN, PASSWORD," +
               "X, Y, Z FROM RD_USERS WHERE LOGIN=? and PASSWORD=?");
               ps.setString(1, user);
               ps.setString(2, pass);
               rs = ps.executeQuery();
               // set the user attributes
               if ( rs.next() )
                  loginValid = true;
                  setUserId(rs.getInt("USER_ID"));
                  setLastName(rs.getString("LAST_NAME"));
                  setFirstName(rs.getString("FIRST_NAME"));
                  setLoginName(rs.getString("LOGIN"));
                  setPassword(rs.getString("PASSWORD"));   
                  X = rs.getBoolean("X");
                  setX(X);
                  Y = rs.getBoolean("Y");
                  setY(Y);
                  Z = rs.getBoolean("Z");
                  setZ(Z);
               else
                  setLastName(null);
                  setFirstName(null);
                  setLoginName(null);
                  setPassword(null);
                  setX(false);
                  setY(false);
                  setZ(false);
               rs.close(); rs = null;
               ps.close(); ps = null;
               //dba.close(); dba = null;
            } The code above gets the info from one table, I now need to get the X, Y, and Z from a different table, but I need the USER_ID first. So, the first table is set up with the user_id and user info, and the 2nd table is set up with the user_id and user permissions

    Thanks DrClap I started on the the query and I did it a little differently, but it should hopefull do the same thing. my tables are constructed as so:
    USER
         USER_ID
         FIRST_NAME
         LAST_NAME
         USER_NAME
         PASSWORD
         ETC....
    USER_PERMISSIONS
         USER_ID
         PERMISSION X
         PERMISSION Y
         PERMISSION Z
         ETC....
    My Select looks something like this
    ps = con.prepareStatement("SELECT a.USER_ID, a.LAST_NAME, a.FIRST_NAME, a.USER_NAME, a.USER_PASSWORD," +
               "b.X, b.Y, b.Z FROM RD_USERS a, RD_PERMISSIONS b WHERE USER_NAME=? and USER_PASSWORD=?");
    This is where I come to a crossroads, Can I add on another AND to say "WHERE a.USER_ID = b.USER_ID
    and do I use the =, or is it ==, or .equals(). Thanks in advance.
    orozcom

  • ALVOOPS with Two Tree display not clearing the prevoious fetched data

    I have screen 2000 (Main tree) and 3000 (Sub tree). From main tree an item is double click the corresponding item id is to be taken and populate the data based on the id and display in second Sub tree. I did the process.
    My problem is
    1st time the data is populating.
    2nd time fetching the 2nd id then process and creating the second tree data
    But finally display the 1st data
    I tried using Delete_all_node, cleared the table, free the container but no use
    Please help me.
    Regards,
    Anand Babu R

    I have screen 2000 (Main tree) and 3000 (Sub tree). From main tree an item is double click the corresponding item id is to be taken and populate the data based on the id and display in second Sub tree. I did the process.
    My problem is
    1st time the data is populating.
    2nd time fetching the 2nd id then process and creating the second tree data
    But finally display the 1st data
    I tried using Delete_all_node, cleared the table, free the container but no use
    Please help me.
    Regards,
    Anand Babu R

  • A way to get the columns to slide under the first column (to create ease in seeing the 1st column info while using the other columns)

    I notice in using the checkbook register template, you reach a certain point and the rows slide under the top row or two.  I there a way to make that happen with the columns. I'm setting up a student attendence roster (is there a template for that?) and I want to be able to read the student name (1st column) and at the same time read the dates at the end of the month or year (subsequent columns)

    Hi. Freeze is used for years in Spreadsheets litterature
    If you didn't know the Numbers User Guide, maybe you don't know iWork Formulas and Functions User Guide which is a powerful resource to learn which functions are available and how to use them.
    As they are PDFs, searching something in them is really easy.
    Yvan KOENIG (VALLAURIS, France) vendredi 6 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2

  • How to display two or more links in a single column

    Hi,
    Is there a way to display two links in a single column in a sql query report . I am able to specify one but I am not able to add links to the same column . I want to take the same column id and redirect the user to different pages based on the values selected .
    Thanks

    There is no way to this declaratively that I know of. Some alternatives...
    1. Put the conditional branching logic in the report SQL itself. e.g. case when ... then '< a href=..' else '< a href=...' end and make sure the column display type is Standard Report column
    2. Have the declarative column link go to a dummy/intermediate page and setup On Load: Before-Header branches on that page to redirect to the desired page based on the item value(s) passed in to the intermediate page.

  • Populating a third column form the contents of lov result the first two

    Hi,
    i have a form with three fields.
    The first two fields are LOV. The third is a text field.
    I would like to compile a third field concatenating the results of these two. I would also check that the third field does not exceed the 30 digit value.
    e.g.
    first field --> country
    lov
    FRANCE d, FR r
    ITALY d, IT r
    second field --> town
    lov
    PARIS d, PRS r
    MILAN d, MI r
    third filed
    PARIS FRANCE ( max 30 char)
    MILAN ITALY
    Any help?
    Thanks in advance
    lukx
    Apex 4.1
    rdbms 11.2

    lukx,
    Yes, you would extend your PL/SQL to use the LOV return values as your look-up to return your display values.
    Looking back your original question; why doesn't your database yield Paris France just by selecting Paris with just one LOV? Maybe you need a table that relates a city to a country.
    Jeff

Maybe you are looking for