Simbol X in the row of results in a query

Hi group,
I have a small question about results in a query. When I open the query, in some rows for results appears the simbol X. If I click right button=> calculate=> sumation, the figure appears right. The problem is I have to do it manually for every row of results everytime I run the query.
Does anyone know how to do it automatically to get the results instead of the X every time that the query is run??
Thank in advance,
David

I have tried it, but still not working....there is not units in the amounts that are to be summed...In facts, it works when i set the calculation of results as summation.
The only problem is that any time that i run the query, again the calculation of results appears as "nothing defined", so i have to change it everytime...
There is any option to set the calculation of results ALWAYS as summation??????
Thanks for your answers!!!!
David

Similar Messages

  • How to read the row of resulted table one by one

    Hi,
    My query is displaying n no of rows in resulted table.Is there any way to read the row one by one and pass the value of attribute in other variable.
    If anybody knows then please let me know.
    thanks
    Divya

    hi
    read the VO using RowSetIterator
    OAViewObject reqLinesVO = (OAViewObject)am.findViewObject("VO");
    if(reqLinesVO!=null)
    int fetchedRowCount = reqLinesVO.getFetchedRowCount();
    RowSetIterator reqLinesIter = reqLinesVO.createRowSetIterator("reqLinesIter");
    if (fetchedRowCount > 0)
    reqLinesIter.setRangeStart(0);
    reqLinesIter.setRangeSize(fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i++)
    OARow row = (OARow)reqLinesIter.getRowAtRangeIndex(i);
    String getattr=(String) row.getAttribute("Attribute14");
    // Always close the iterator when you're done.
    reqLinesIter.closeRowSetIterator();
    thanx
    Pratap

  • Limit the number of results from a querying a table

    I have a table, NAMES, that holds appx 50 names.
    I want to be able to list a certain amount of names and once that limit is reached( 6 or 7 or so), output a row / link / statement that says, you've reached your limit.
    For example the output would look similar to :
    Jim
    John
    James
    Mike
    Henry
    Mark
    'Limit Reached'
    'Limit Reached' would eventually need to be a link, but I am already familiar with creating links from query results, persay.
    I've experimented with listagg, case statements and decode but am not sure how to do this. I'm thinking decode is the way to go but am not sure how to keep track of a counter as the sql is running. This needs to be written in sql only, not pl/sql, if possible. My query so far is
    Select first, last
    From Names
    where rownum <= 6
    Not sure how to accomplish this. Any help would be greatly appreciated. Thanks in advance

    Hi,
    NewApexCoder wrote:
    @FrankKulasg
    I have tested these using union. However, I also have columns I need to include that aren't text fields (such as an ID column, which is a number / integer type). I can't use NULL. Is there anything to substitue for this?
    Other people can use NULL.  Why can't you?
    If you could use NULL. then you could do something like this:
    SELECT  ename
    ,       job
    ,       sal     -- a NUMBER column
    FROM    scott.emp
    WHERE   ROWNUM  <= 6
        UNION ALL
    SELECT  'Limit reached'
    ,       NULL    -- in place of a VARCHAR2
    ,       NULL    -- in place of a NUMBER
    FROM    dual
    Output:
    ENAME         JOB              SAL
    SMITH         CLERK            800
    ALLEN         SALESMAN        1600
    WARD          SALESMAN        1250
    JONES         MANAGER         2975
    MARTIN        SALESMAN        1250
    BLAKE         MANAGER         2850
    Limit reached
    7 rows selected.

  • Results from another Query - not available

    HI,
    My environment is Business Objects XI 3.1 SP2 Edge series , i have  below quereis with web Intelligence Reports
    1. not available  the functions/options  Results from another Query(Any) or Results from another Query(ALL) at Query Level.
    2. not getting list of Values for pronpt until i refresh values for prompt?
    Please suggest me is there any fix packs available for the same to availle that functionality.
    Best Regards,
    Reddeppa K

    not getting list of Values for pronpt until i refresh values for prompt?
    There is option called  "Automatic refresh before use"  for the object properties available in the universe designer.
    Please check the box for the object you are using for populating the list of values and export the universe.
    not available the functions/options Results from another Query(Any) or Results from another Query(ALL) at Query Level.
    There is a limitation for the query on query functionality that the both the queries can-not be from the OLAP universe.
    I guess the query which needs to be filtered should be built on universe from the relational data base.
    Regards,
    Rohit

  • Problem when Counting results of a query

    Hi all
    In our application, we use the Toplink Essentials Queryframework API to create queries because of JPA limitations.
    Now I have a problem: I want to count the results of a existing query, i.e. I have a ReportQuery and I want to count the results of it.
    I tried the following:
    ReportQuery query = ...
    ReportQuery countQuery = new ReportQuery(Pivot.class, builder);
    countQuery.addCount(COUNT,
    ExpressionBuilder.from("id", builder.subQuery(query)));
    countQuery.setShouldReturnSingleValue(true);
    return Integer.valueOf(session.executeQuery(countQuery).toString());
    Now it seems that Toplink executes the query but the result is not correct, i.e. the count result is NOT the same as the number of results in the original query.
    The subquery may contain group by's, a where clause and so on...
    Anyone has an idea how to count the number of results of another query in Toplink?
    It should have the same affect as a simple sql "select count(*) from (select ...)" query.
    Regards
    Michael

    Not exactly sure what your doing, what does the original ReportQuery select?
    You probably want to do something like the following:
    originalQuery...
    ReportQuery countQuery = new ReportQuery(Pivot.class, countBuilder);
    countQuery.addCount("id");
    countQuery.setSelectionCriteria(originalQuery.getSelectionCriteria());
    You may need to also call rebuildOn() if you reuse the same selection criteria from a different query.
    i.e.
    countQuery.setSelectionCriteria(originalQuery.getSelectionCriteria().rebuildOn(countBuilder));
    James : http://www.eclipselink.org

  • When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, and the safe search button is inoperable. Suggestions?

    When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, the remainder of the results page is blank, and the safe search button is inoperable. When I turn off private browsing and refresh the page, everything works again.
    Anyone else having this problem?

    I have got the same behaviour after the last Safari Update to 5.1.3. It seems that Safari now handles some scripts in a new way. If you debug the Google Website, you will see, that there is some Javascript Error, that seems to prevent to write into local cache. After some searching I wasn't able to finde a solution for this problem, other then disabling Javascript while private browsing to prevent the script loading. You then are able to use Google with the old layout. The option to disable JavaScript can be found in the Menu "Developer", wich has to be enabled in Safari in the options first.
    In my opinion this is a bug that is now occuring, because Apple changed something in private browsing and that has to be fixed by Google now, to run again. Or we will have to wait for 5.1.4, as you can read online Apple will change and bugfix the javascript engine in that version, perhaps this fixes the problem as well. I hope so!
    If anyone is in the developer program perhaps you could test this with the beta of 5.1.4 and tell us if it works.

  • Access to the Row Number in a Query Result

    Hi everyone! I have this query:
    select s.cod_score, ROW_NUMBER() OVER (ORDER BY s.cod_score) AS num
    from score s
    where s.categoria.cod_categoria='001' and s.gara.cod_gara='25251';
    that returns:
    COD_SCORE | NUM
    00001     1
    00002     2
    00007     3
    00009     4
    00014     5
    Now i want to display only the row with NUM='1', but how can i do that? I try with this:
    select s.cod_score, ROW_NUMBER() OVER (ORDER BY s.cod_score) AS num
    from score s
    where s.categoria.cod_categoria='001' and s.gara.cod_gara='25251' and num=1;
    but it tells me "%s: invalid identifier". How can i do?
    Thanks in advance :)

    986747 wrote:
    Thanks everyone :) Now if i want to use the result of that query in an UPDATE how can i do? I try with this:
    update score set posizione = '(first,1)' where score.golfista.n_tessera=(
    select golf
    from (select s.golfista.n_tessera as golf, ROW_NUMBER() OVER (ORDER BY s.cod_score) AS num
    from score s
    where s.categoria.cod_categoria='001' and s.gara.cod_gara='25251')
    where num=1);
    But it tells me that "SCORE"."GOLFISTA"."N_TESSERA" is an invalid identifier. Why? It is the primary key of the table golfista which has a REF in score...Hi,
    what is the structure of table SCORE?
    SCORE.GOLFISTA identifies a column. But SCORE.GOLFISTA.N_TESSERA seems not to be a valid value.
    Please read SQL and PL/SQL FAQ
    Whenever you ask a question post sample data (CREATE TABLE and INSERT statements) for a small significant amount of data.
    Post the logic of your process and the expected output.
    Additionally when you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Regards.
    Al
    Edited by: Alberto Faenza on Feb 13, 2013 4:33 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 3.5 Query Designer has 'row' in the footer of results but 7.0 has 'page'

    3.5 Query Designer has 'row' in the footer of results but 7.0 has 'page' is there a way to change 7.0 to have 'row' instead of 'page'? We would prefer to see how many rows of data we have. I didn't know if this was a parameter they may be able to be changed.
    Thanks,
    Diane

    I donot think there is way to display Row instead of Page.
    Also in 7.0. It is based on cells.

  • Retrieving the row number of a specific record from the results of a MySQL query

    I want to create a MySQL query that will return a list of
    records, and then retrieve the row number of a record with a
    specific ID. How can I do this?
    *server-side script: PHP

    <?php
    $i = 0;
    do {
    $i++;
    } while (mysql_fetch_assoc($rsWhatever) &&
    $row_rsWhatever['ID'] !=57);
    echo "TADA -" . $i;
    ?>
    (assuming that ID is numeric, and that the test value
    actually exists in the
    database)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "AngryCloud" <[email protected]> wrote in
    message
    news:g4e6ck$hrb$[email protected]..
    >I will use this scenario for an example:
    >
    > I want to know how far down the list I will find the ID,
    '57'.
    >
    > So I manually look at the list of results and see it is
    the 25th record
    > down
    > on the list.
    >
    > How do I get my PHP script to get this number (25)
    automatically?
    >

  • For exception on result ; Highlight the rows

    Hi guys
    could be a simple question with a "not so simple" answer - Is there a way in Bex to read the result row and compare with a condition say - for result < 100 ; Highlight the individual rows that add up to give the result row ?
    if it can be done , Please tell me how ?
    appreciate your inputs,
    thanks
    Shweta

    Hello,
    If a query, on BEx Analyzer, I think this is not possible.
    However, if you save the query as workbook, you can add insert any macro code on SAPBEXONREFRESH
    Then, when you refresh your workbook, the macro will be executed and you can create a code to compare the rows values.
    You can access the SAPBEXONREFRESH procedure pressing ALT + F11.
    Thanks
    Edward John

  • Table.rows.find() returns null in a table where the row exists.

    Hi...
    I am working in a Project in Visual Studio 2013 where I have to read an Excel report related with a list of business opportunities. Some of the Fields that are involved in it are:  Opportunity ID, BU, Account, close date, Account Manager,
    Total Value and so on. As soon as I get the conection with the Excel Report, I fill a DataTable and declare the columns [Opportunity ID] and [BU] as my Primary Keys.  In that way, an Opportunity value may have one o more rows
    with different BU code each of them.  In consequence, you can define one row in the table if you specify the [Opportunity ID] and the [BU] values.
    My problem starts when I try to get information of those rows that have an specific value of [Opportunity ID]. For that situation I make a "foreach" structure where I check the BU codes that are involved with that Opportunity. So
    I use the Find() Method to get the information of the row specified by the Opportunity ID and BU.  The first time it goes to find the information it gets the results successfully but in the next cycle changing just the [BU] using the same [Opportunity
    ID] value, the find() method returns a "null" and I do not know why because I am sure that the row exists in the table.  I have verified the "Unique" property for the  [Opportunity ID] and [BU] columns (which are
    my primary keys)  and they are in false which is OK.
    I share the code that I am using...
    Hope someone can help.
    Thanks.
    Alfmar.
    void ObtenTotalesxBUs(string Opportunity, string[] BUs, Object[] TotalBUs, Object[] ExpTotalBUs)
    ArrayList TotalesBUs = new ArrayList(); //Required information from the row.
    ArrayList ExpTotalesBUs = new ArrayList(); //Required information from the row.
    foreach(string businessUnit in BUs)
    Object[] LlaveBusqueda = { Opportunity, businessUnit }; //Provide values to the Primary Keys.
    DataRow RenglonInfo = null;
    RenglonInfo = TablaFunnel.Tabla.Rows.Find(LlaveBusqueda); //Find method receives the Primary Keys values. Here is where I have a "null" in return the second time changing just the [BU] field.
    TotalesBUs.Add(RenglonInfo["Total"]); //Get the required information from the row.
    ExpTotalesBUs.Add(RenglonInfo["Expected Total Value"]); //Get the required information from the row.
    TotalBUs = TotalesBUs.ToArray();
    ExpTotalBUs = ExpTotalesBUs.ToArray();}

    Hi Viorel..
    Thanks a lot for you help.
    I am absolutely sure that the second ítem of BU is valid and exist in the table because I tried to make a "Select" statement in the table providing the values of [Opportunity ID] and [BU] and I get the expected record. So, why is not
    working using Find() with the defined Primary Keys??? 
    I tried this in order to test that the record exists...
    if(RenglonInfo == null)
    string strSelect = "[Opportunity ID] = '0000218256' AND [BU] = 'SFW'";
    RenglonInfo2 = TablaFunnel.Tabla.Select(strSelect);

  • How to get the values of the rows just updated in sql

    USE []
    GO
    /****** Object:  StoredProcedure [dbo].[PriceChanges_Update]    Script Date: 09/01/2014 15:43:31 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:
    -- Create date: August 27, 2014
    -- Description: Change cigarette prices based on brands.
    -- =============================================
    ALTER PROCEDURE [dbo].[PriceChanges_Update] 
    -- Add the parameters for the stored procedure here
    @BrandIDs AS IntListUDTT READONLY,
    @Cost decimal(10,2)=NULL,
    @EFT1 decimal(10,2)=NULL,
    @EFT2 decimal(10,2)=NULL,
    @StateTax decimal(10,2)=NULL,
    @StampAllowance decimal(10,2)=NULL
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
        -- Insert statements for procedure here
        UPDATE Brands SET Cost = ISNULL(Cost + @Cost, Cost), EFT1 = ISNULL(@EFT1, EFT1), 
        EFT2 = ISNULL(@EFT2, EFT2),StateTax = ISNULL(@StateTax,StateTax), 
        StampAllowance = ISNULL(@StampAllowance, StampAllowance), 
        Price = (( ISNULL(Cost + @Cost, Cost)+ ISNULL(@StateTax, StateTax)) * .06) +( ISNULL(Cost + @Cost, Cost)+ ISNULL(@StateTax, StateTax)),
        PickupPrice = ((( ISNULL(Cost + @Cost, Cost)+ ISNULL(@StateTax, StateTax)) * .06) +( ISNULL(Cost + @Cost, Cost)+ ISNULL(@StateTax, StateTax))) - .25,
        Retail = (((( ISNULL(Cost + @Cost, Cost)+ ISNULL(@StateTax, StateTax)) * .055) +(ISNULL(Cost + @Cost, Cost)+ ISNULL(@StateTax, StateTax))) *.0775) + (( ISNULL(Cost + @Cost, Cost)+ ISNULL(@StateTax, StateTax)) *
    .055) +( ISNULL(Cost + @Cost, Cost)+ ISNULL(@StateTax, StateTax))
        WHERE BrandID IN (SELECT ID FROM @BrandIDs)
    Above is  a procedure which updates a number of rows in the Brands table. I need to be able to take some data from all the rows that were updated and update a different table if the BrandID matches. How would I be able to do this?
    Debra has a question

    . I need to be able to take some data from all the rows that were updated and update a different table if the BrandID matches. How would I be able to do this?
    Debra has a question
    You can also use the
    OUTPUT Clause.
    Thanks and regards, Rishabh K

  • How to get the rows from a table having some column has any letter

    Hi All,
    suppose i have a table having columns id(number), code(varchar).
    code has alphanumeric characters (ex. ABC123, 67B56 etc).
    some codes are only numbers (2344, 7898 etc).
    how can i get the rows which have alphabets in the code.
    ex:
    id code
    1 AB45
    2 456
    3 890
    4 67B7
    how can i write a query such that it should give me the ids 1 and 4 (as they have alphabets in code)
    thanks in advance to all

    Thanks to one and all.
    i am gettig my required output.
    But i have a doubt in the operator.
    If i add or remove '[]' in the operator, i am getting different ouputs.
    There is a count difference in the result of the operators used.
    REGEXP_LIKE(<column>,'[[:lower:]]')
    REGEXP_LIKE(<column>,'[[[:lower:]]]')
    REGEXP_LIKE(<column>,'[:lower:]')
    Can anybody please explain what is the difference in using '[]', in the operator?
    What is the correct syntax, whether i have to use two '[]'s or one '[]'.
    Also, can i use REGEXP_LIKE() in oracle 8i version.( I am unable to use the operator in 8i)?
    Any query to get the required output in 8i version?
    Thanks in advance to all.

  • Can't omit both the rowset and the row element?

    consider the simple document below. Notice that row-element and
    rowset-element are both empty, so neither type of element will
    be generated. Also notice that the xsql:query tag is embedded in
    other tags.
    I get "oracle.xml.sql.OracleXMLSQLException: The row enclosing
    tag or the row-set enclosing tag is ommitted; consequently to
    get a well formed XML document, the result can only consist of a
    single row with multiple columns or multiple rows with exactly
    one column each." However, in reality the result will be a valid
    XML document because I enclosed the query in a single top-level
    <table> tag. So the error checking code in the XSQL servlet is
    generating a generating a false positive (that is, seeing an
    error that isn't there).
    My question is, how can I work around this problem? I know I can
    let the servlet generate a rowset element and use an XSLT
    stylesheet to remove it but is there a another way?
    Thanks,
    Brian
    By the way, the "numbers" table contains the numbers 1-1,000,000
    and so it can be used to generate multiple copies of the output
    of any query. In this example, I expect to get 55 <th> tags in
    the output (yes, my HTML table is really that wide), all nested
    in a single <tr> tag which is nested inside a single <table> tag.
    <table connection="XXX"
    xmlns:xsql="urn:oracle-xsql"
    xmlns='http://www.w3.org/1999/xhtml'>
    <tr><th rowspan='2'>ID</th>
    <xsql:query rowset-element=''
    row-element=''>
    <![CDATA[
    SELECT 'fvc'          AS "th"
              , 'fev1'     AS "th"
              , 'fef25_75'     AS "th"
              , 'fev1/fvc'     AS "th"
              , 'vc'          AS "th"
              , 'tlc'          AS "th"
              , 'rv'          AS "th"
              , 'frc_n2'     AS "th"
              , 'frc_pl'     AS "th"
              , 'erv'          AS "th"
              , 'dlco'      AS "th"
         FROM numbers
         WHERE n < 5
    ]]>
    </xsql:query>
    </tr>
    </table>

    In XML, single quotes are equivelent to double quotes. This
    enables you to have attribute values like "That's Neat" and
    'About 2" Long'.
    The problem is that an xsql query can only return a tree as a
    fragment (e.g. there must be one root element). I think this is
    too restrictive.

  • How to show all the rows of a report in one page

    My report has 30 rows, by default it just show 15 rows. I want to show all the rows just in one page, without cliking link or arrow to see the left.
    In the Layout and Pagination:
    Report Template: template: 15. Standard Report (PPR)
    Pagination Scheme: Row Ranges X to Y (no pagination)
    Display Position: Bottom - Right
    Number of Rows: 1000
    Number of Rows (item) 1000
    Maximum Row Count: 1000
    How to fix it?
    Thanks.
    Jen

    Ok, I think I got it. I needed to blank out Number of Rows(item), Maximum row count and only populate Number of Rows. I was sure I did that before and it didnt work.
    Do you think that the Sessions in Apex can cause unexpected results? I have found that when I make changes I have to log all the way out of Apex, close my browser and reopen everything to ensure that my change took. Does anyone else have this issue? I can move this into a different thread if need be.
    Thx!

Maybe you are looking for

  • How do I separate my contacts from my husband's list of contacts?

    I have a Galaxy S5 and my husband has an Apple iPhone 5S - how do I separate the contact lists - we DO ONT want to share the same ones but I cannot figure out how to separate them???

  • [Solved] Can't boot into Arch after deleting some partitons

    About 6 months ago I installed Arch on a machine that used to run Ubuntu. Had some trouble at the time getting to boot into Arch but somehow managed. Now eventually decided to delete the old Ubuntu partitons to free up some space using gparted. Arch

  • Clients in Flex-connect SSID (with Anchor Controller) not able to connect with BYOD

    I have a WLC and having some SSIDs for Flex-connect mode (Mobility-group). Users trying to connect the wireless network using BYOD device but while they are trying to connect , it spins and spins . I checked controller , client is connected and got I

  • Inserting Strings in XML elements

    I have an xml file that describes the content of an OpenOffice document (content.xml). A node in the file contains a bookmark named 'DateWritten' where data, in this case a date in string format "YYYY-MM-DD" , is to be entered. The node looks like th

  • Flash header in iWeb - Links not working

    Here's the situation: I managed to get a flash header to show up on my  site by using an HTML Snippet. There are three buttons in this flash  file. Each of them open up drop-down menus with links to different pages  found on the site. Currently, when