Question on Query

Hi Friends,
Business wants empty values to be displayed as zeros (0.00) in the query for key figures. Please help me how i can proceed further, becasue i am new to BEX.
Many Thanks!
Regards,
Syed

hi,
  go in query properties-> value display-> zero value display and here there are different  option:
With Currency/Unit: Zeroes are displayed with the currency/unit that is 0.00USD
Without Currency/Unit: Zeroes are displayed without a currency /unit  that is 0.00.
A Empty Cells: Cells containing a zero value remain empty.
Display Zeroes As: Choosing this setting activates the Display Zeroes As field. You are now able to enter the required value (character, number or letter), for example, *. The cells containing a zero value are filled with this value.
i guess for your secanrio without currency/unit fits in, please use  that setting , i hope this will resolve your issue
regards
laksh

Similar Messages

  • Crystal Report Question on query

    I am trying to design a report to where it lists a name of a unique person in a table and totals the amount of money they owe. Essentially it's a letter for parking tickets and it will total all the fine amounts for that individual person. I don't know how to design the report to produce this result and how to design the query to produce this result.

    Hi, I copied the question, so I would not miss anything.
    I am trying to design a report to where it lists a name of a unique person in a table and totals the amount of money they owe. Essentially it's a letter for parking tickets and it will total all the fine amounts for that individual person. I don't know how to design the report to produce this result and how to design the query to produce this result.
    First off, depending on your version of CR, some of the instructions may not be correct.  I have CRXI
    Create a group based on the persons information (I assume you would have a drivers license number, or something you could group off of.  You may also want to group off date/time or amount.
    In your details section drop in whatever fields you wish to return from the Database.
    When you run your report, you should see all the records, sorted by the persons Id and then the date.
    Now, this will be more data than you want, so you can use the select expert to limit what is returned.   For example if the ticket is paid, you do not need to send a letter.  The select statement will look something like this, if your field that indicates a ticket is paid is ticket_#              not ({Ticket_#} like "paid")    So if Paid shows up in that field, the record is suppressed.   Also, look at the example reports, they may help you get some id's

  • Another question about query execution speed.

    I know I should normally start with posting the query but my question will take a little different direction, so here is the deal:
    We have an Apex application, there is a query on one of the pages that for certain users takes quite long, lets say 1min to 2 min, depending on how many records the query returns. The actual query varies depedning on some security settings and other parameters on the page - it's constructed by pl/sql function returning sql.
    By querying v$sql I get the exact sql run by the user for who the query takes long time to execute.
    Then I run that same sql statemt in Toad and it always takes 2 seconds to execute. For the user executing the same sql from Apex takes consistently 50-100 sec. My Toad is set to return up to 10,000 records and the query returns less than 500.
    Can somebody help me make some sense of this?
    George

    Hi there
    geo2 wrote:
    We have an Apex application, there is a query on one of the pages that for certain users takes quite long, lets say 1min to 2 min, depending on how many records the query returns. The actual query varies depedning on some security settings and other parameters on the page - it's constructed by pl/sql function returning sql.To render a page, Apex does much some more stuff than just run the query. For instance, depending on the type of pagination you have enabled it needs to get the total number of rows to display "x to y of z" (or to display the message "more than nnn rows found"). Have you enabled debugging in Apex to be sure that most of the waiting time is spent on that query?
    By querying v$sql I get the exact sql run by the user for who the query takes long time to execute.
    Then I run that same sql statemt in Toad and it always takes 2 seconds to execute. For the user executing the same sql from Apex takes consistently 50-100 sec. My Toad is set to return up to 10,000 records and the query returns less than 500.Does Toad takes only 2 seconds to retrieve all rows or just to get the first top rows?
    Luis

  • The simplest question about query in multimedia

    Hi i write in command line
    DECLARE
    score DOUBLE PRECISION;
    myimage SI_StillImage;
    myotherimage SI_StillImage;
    myAvgColor SI_AverageColor;
    BEGIN
    SELECT fotka1 INTO myimage FROM fotkiord WHERE fotkaid1=71;
    myAvgColor := NEW SI_AverageColor(myimage);
    SELECT fotka1 INTO myotherimage FROM fotkiord
    WHERE fotkaid1=72;
    score := myAvgColor.SI_Score(myotherimage);
    DBMS_OUTPUT.PUT_LINE('Score is ' || score);
    END;
    and I get from script output
    anonymous block completed
    Where i can find the real output of my query ??

    ok i answerd my own question
    create or replace
    PROCEDURE "PROC2"
    pod_id IN fotkiord.fotkaid1%type,
    pod1_id IN fotkiord.fotkaid1%type)
    IS
    score DOUBLE PRECISION;
    myimage SI_StillImage;
    myotherimage SI_StillImage;
    myAvgColor SI_AverageColor;
    BEGIN
    SELECT fotka1 INTO myimage FROM fotkiord WHERE fotkaid1= pod_id;
    myAvgColor := NEW SI_AverageColor(myimage);
    SELECT fotka1 INTO myotherimage FROM fotkiord
    WHERE fotkaid1= pod1_id;
    score := myAvgColor.SI_Score(myotherimage);
    DBMS_OUTPUT.PUT_LINE('Score is ' || score);
    END ;

  • General question about query

    Hi,
       You create a InfoCube, with aggregate been performed in it, now you write a query for that cube, how will you Identify a query with a cube, which has aggregate performed in it, is there a way to find it?
    Please let me know, if you dont understand the question.
    Thanks.
    will reward points.

    Hi,
    The fact that a query uses an aggregate to fetch the data from is transparent on the Bex front-end. If you want to check if a query is fethcing data from the cube or its aggregates, execute the query in RSRT with the Debug options set for aggregates.
    Hope this helps...

  • Question on query causing timeouts and CXpacket

    Hello,
    I am using SQL Server 2008 R2 SE with 24 processors as shown below:
    This is a standalone non clustered server. The MAXDOP setting is 8 as shown below:
    These settings have been the same for more than an year. But since last week I am noticing that query is taking longer time to execute and complaining on 94% wait time is on CXPACKET. Does this necessarily mean the MAXDOP setting has to be changed?
    I added a few indexes for this query and CXPacket is gone but the indexes are causing failures somewhere else. As soon as the indexes were disabled these failures are gone. 
    Experts I need your valuable thoughts on this. Thanks a bunch.

    Hello,
    But since last week I am noticing that query is taking longer time to execute and complaining on 94% wait time is on CXPACKET. Does this necessarily mean the MAXDOP setting has to be changed?
    I would think not at this moment (though that's just a guess right now). Is this a problem with just a single query, a few, all, etc? The first step I would take (against CXPACKET waits on a query) is to check out the execution plan and verify that statistics
    skew isn't causing a problem with work divisions per thread. To do this, find the parallelism operators (press f4 to show details in SSMS) and investigate the threads and the amount of rows each processed. If it is skewed on some threads that could be participating
    in the issue you are having. Let's start checking here and see what the result is.
    You could also get the execution plan and upload it somewhere for us to look at.
    Sean Gallardy | Blog
    MCM 2008
    MCSM:Data Platform Charter Member

  • Questions for Query Migration to 7.x

    Hi, I am sure lots of people have converted all of their Queries from 3.x to 7.x at this point in time so I'm hoping to leverage from the experienced knowledge base that is out there. 
    When Migrating the Queries did everyone...  (If you could add your detailed experience that would be appreciated! 
    1. Migrate in Dev and transport
    or ---
    2. Migrate Queries separately in each environment?
    Thanks

    Hi
    Before Migration , make sure system having BI 7 installation for query designer and other.
    As Per your thread , YES we need to migrate the queries in Development system , collect the transport and move it further system.
    Migration process like:
    1). Goto Query Designer open the 3.x in BI 7.
    2). If there were no warning and errors after query opened in query designer, Then Save query into BI7. With this step query migrated into BI 7.
    3).  If query wants to restore into 3.x , we are having program COMPONENT_RESTORE to get it back, This program will gets query back into older version as its same as old query.
    4). After migration of queries use transport connection to collect transports. With this help we can make sure all query elements also collected successfully.
    Hope this will clear all your concerns.
    M

  • Question on query expression

    I read through the ondemand webservices guide but didn't fiind the answer I was looking for.
    I have a requirement to query Opportunities by setting a multiple search criteria on a single field. For ex, OpportunityConcatField Not equal to VALUE1, VALUE 2 etc.
    If I set only one value in the expression the query works fine. The moment I set more than one value the query bombs out. I read in the forum somewhere that, if I need to set multiple criteria I need to create multiple objects (each with a single criteria) and add them to the list of the input. I would like to avoid it if I can as my criteria is dynamic and is specified in a config file.
    Is there any other alternative ?.
    Thanks

    If i understand your problem correctly, you want to query the records where OpportunityConcatField not equal to VAL1, VAL2,VAL3 etc...
    why don't you use AND operation
    ((<>'VAL1') AND (<>'VAL2)) AND (<>'VAL3') like this.
    Dinesh

  • Question with Query

    Hello all,
    This might be simple for a experienced user. I wrote a query in my sql 2000 database, to retrieve records. The query looks like this.
    select employee.employeeLName,employee.employeefname,employeepay.badgeNumber,
    from employee
    INNER JOIN employeepay
    ON employee.employeeid=employeepay.employeeid;
    Since this is our payroll database, everytime a user is changed whether its , pay rate, fulltime-partime, etc, it updates a new record within the database. So when I run this query it pulls like 10 or so records of each employee. There is a column in the
    employeepositions table that is Effectivedate. I need to write this exact query but have it pull the records of only the newest effective date for each employee? Any help would be great!

    Welcome to the forums.
    Looks like you've not met the alias yet. An alias is a short way to refer to a table. After you've used the table name, you can follow it with a short name (FROM employee e), you can then reference that table using it's short name else where in the query.
    This can make your queries significantly shorter, and much easier to read.
    Since you're on 2000, we have to use ugly inserts. Sorry about that. I've mocked up your tables based on the information you gave us. In future if you could do this yourself, it will help people to help you.
    Basically, we need to self-join the table and get the most recent effective date for any given employee:
    DECLARE @employee TABLE (employeeID INT IDENTITY, employeeLName VARCHAR(50), employeeFName VARCHAR(50), badgeNumber INT)
    INSERT INTO @employee (employeeLName, employeeFName, badgeNumber) VALUES ('Bond','James',007)
    INSERT INTO @employee (employeeLName, employeeFName, badgeNumber) VALUES ('Kirk','James',1701)
    INSERT INTO @employee (employeeLName, employeeFName, badgeNumber) VALUES ('Archer','Jonathon',01)
    INSERT INTO @employee (employeeLName, employeeFName, badgeNumber) VALUES ('Archer','Sterling',1)
    DECLARE @employeePay TABLE (employeeID INT, effectiveDate DATETIME, salary FLOAT)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (1, '2000-01-01',1007)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (1, '2001-01-01',2007)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (1, '2002-01-01',3007)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (2, '2000-01-01',1701)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (2, '2001-01-01',2701)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (2, '2002-01-01',3701)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (3, '2000-01-01',101)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (3, '2001-01-01',201)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (3, '2002-01-01',301)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (4, '2000-01-01',9999)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (4, '2001-01-01',99999)
    INSERT INTO @employeePay (employeeID, effectiveDate, salary) VALUES (4, '2002-01-01',999999)
    SELECT *
    FROM @employee e
    INNER JOIN @employeepay ep
    ON e.employeeid = ep.employeeid
    AND ep.effectiveDate = (SELECT MAX(effectiveDate) FROM @employeePay WHERE employeeID = e.employeeID)
    hope this helps.

  • Questions on Query Variable

    HI,
    I have a query where I can see the list of variables in the Query Property out of which I cant find one variable used in the query but it comes up in query properties.
    How can i find out where the variable is used?
    Thanks,
    Dave.

    Did you check in Query Properties ? will show the list of variables and their sequence for the selection screen
    QD - Left hand side - expand char - you will see char values of variables
    BI 7.x  click on rows/columns tab - you will see the variables for selection under Default values and click on variable and choose where used list from the menu , will show u list of variables
    check the table for variables RSZGLOBV
    Edited by: Srinivas on Sep 1, 2010 8:56 PM

  • Simple Question - SQL Query

    List the branch number and names of shops which do not have any books written by Pratt in stock. Order the list by branch number.
    how can I code this? if that statement was positive, i would say something like "where ..... author_last IN ('Pratt')"
    But in this case, how can I do it? i don't think there's a command like "OUT" in SQL :)

    Hi,
    If you how how to find the shops that DO have such books, then you're off to a good start!
    Make a NOT EXISTS or NOT IN sub-query.
    For example, in the scott.dept table, if you wanted to find all the departments that do not have any salesmen working in them (as found in the scott.emp table):
    SELECT  *
    FROM    scott.dept
    WHERE   deptno  NOT IN ( SELECT  deptno
                             FROM    scott.emp
                             WHERE   job  = 'SALESMAN'
    ;"NOT IN" is sort of like "OUT".

  • Basic question about querying georaster tables

    hello all
    i have a table with georaster column containing georeferenced images covering large area. can i query the table to get an image covering any user given cooordinates . the user given coordinates can span more than one image in the table. is this possible
    thanks

    Hi,
    Yes this is possible to operate with several GeoRaster images in one or several tables. But before this you should create specific GeoRaster metadata structure to join those separate images. You can find information about this procedure in GeoRaster documentation.
    Regards,
    Andrejus

  • Datapump question with "query"

    Hi,
    I'm trying to use expdp to export only certain rows of a table. Am I doing something wrong? (obviously yes ;-) Getting the following error
    $ expdp user/password directory=DP dumpfile=dunp.dmpdp tables=user.t_calculationhistory query=user.t_calculationhistory:"WHERE DATEOFCALCULATION>TO_DATE('20081111','YYYYMMDD') AND DATEOFCALCULATION<TO_DATE('20081112','YYYYMMDD')"
    **LRM-00116: syntax error at ')' following 'YYYYMMDD'**
    $
    Any suggestions on the syntax

    Hi,
    Try this
    $ expdp user/password directory=DP dumpfile=dunp.dmpdp tables=user.t_calculationhistory query=user.t_calculationhistory:' "WHERE DATEOFCALCULATION>TO_DATE('20081111','YYYYMMDD') AND DATEOFCALCULATION<TO_DATE('20081112','YYYYMMDD')" '
    Your condition is wrong because date of calculation is greater than 11 and less than 12, i think you have given wrong date.
    regards
    Jafar

  • Performance question 1 query with several tables, or several queries?

    Say I want to gather data from various tables, for instance.
    1. big query like this....
    Select col1, col2, col3, col4, col5
    from tab1, tab2, tab3, tab4, tab5
    where tab1 = tab2
    and tab2 = tab3
    and tab3 = tab4
    and tab4 = tab5;
    or
    different queries in a cursor (to gather each column i need), like this...
    cursor c_1 Is
    select col1
    from tab1
    where col1 = :param
    cursor c_2 Is
    select col2
    from tab2
    where col2 = :param
    cursor c_3 Is
    select col3
    from tab3
    where col3 = :param
    cursor c_4 Is
    select col4
    from tab4
    where col4 = :param
    Efficiently, what's better, faster and resources saver?
    Gracias a lot.

    Truthfully, the only way you will know or sure is to run both queries and compare timing results and resource demands. The phrase "your mileage may vary" applies here. Anything else anyone tells you is a rule of thumb which is most often going to be correct but may have exceptions to that rule.
    Cheers,
    Brian

  • Java Persistance: Question about query within inheritance class

    In father class here is the annotation:
    @Entity
    @Table(name = "CONTENT_MEDIA")
    @Inheritance(strategy=javax.persistence.InheritanceType.JOINED)
    @DiscriminatorColumn(name="CONTENT_TYPE", discriminatorType=javax.persistence.DiscriminatorType.INTEGER)
    @DiscriminatorValue("4")
    In son class here is the annotation and query:
    @Entity
    @Table(name = "ISBN_BOOK")
    @DiscriminatorValue("1000001")
    @NamedQueries( {
    @NamedQuery(name = "ISBN_BOOK.findViaISBN", query = "SELECT g FROM ISBNBook g WHERE g.ISBNnumber = :isbn")
    When I do the query, the result is:
    Internal Exception: org.apache.derby.client.am.SqlException: Comparisons between 'INTEGER' and 'CHAR' are not supported.Error Code: -1
    Call:SELECT t0.CONTENT_ID, t0.CONTENT_TYPE, t0.OBTAIN_DATE, t0.SEARCH_TIMES, t0.LAST_SEARCH_DATE, t1.CONTENT_ID, t1.BOOK_NAME, t1.AUTHOR, t1.ISBN_NUMBER, t1.CURRENT_LOCATION FROM CONTENT_MEDIA t0, ISBN_BOOK t1 WHERE ((t1.ISBN_NUMBER = CAST (? AS VARCHAR(32672) )) AND ((t1.CONTENT_ID = t0.CONTENT_ID) AND (t0.CONTENT_TYPE = '1000001')))
    bind => [AAA]
    The problem is: t0.CONTENT_TYPE = '1000001'. I have set the column to Integer, why the JPA use the char?
    Can anyone solve the problem for me?

    In father class here is the annotation:
    @Entity
    @Table(name = "CONTENT_MEDIA")
    @Inheritance(strategy=javax.persistence.InheritanceType.JOINED)
    @DiscriminatorColumn(name="CONTENT_TYPE", discriminatorType=javax.persistence.DiscriminatorType.INTEGER)
    @DiscriminatorValue("4")In son class here is the annotation and query:
    @Entity
    @Table(name = "ISBN_BOOK")
    @DiscriminatorValue("1000001")
    @NamedQueries( {
    @NamedQuery(name = "ISBN_BOOK.findViaISBN", query = "SELECT g FROM ISBNBook g WHERE g.ISBNnumber = :isbn")
    })When I do the query, the result is:
    Internal Exception: org.apache.derby.client.am.SqlException: Comparisons between 'INTEGER' and 'CHAR' are not supported.Error Code: -1
    Call:SELECT t0.CONTENT_ID, t0.CONTENT_TYPE, t0.OBTAIN_DATE, t0.SEARCH_TIMES, t0.LAST_SEARCH_DATE, t1.CONTENT_ID, t1.BOOK_NAME, t1.AUTHOR, t1.ISBN_NUMBER, t1.CURRENT_LOCATION FROM CONTENT_MEDIA t0, ISBN_BOOK t1 WHERE ((t1.ISBN_NUMBER = CAST (? AS VARCHAR(32672) )) AND ((t1.CONTENT_ID = t0.CONTENT_ID) AND (t0.CONTENT_TYPE = '1000001')))
    bind => [AAA]he problem is: t0.CONTENT_TYPE = '1000001'. I have set the column to Integer, why the JPA use the char?
    Can anyone solve the problem for me?
    I think now it is more readable.
    (use code tags pls)

Maybe you are looking for

  • Scratches on the bottom of my MacBook Pro

    My own carelessness has unfortunately resulted in scratches on the bottom edges of my MacBook Pro. There is also a rather unsightly crack that has appeared from the top right hand corner where the charger connects to the middle section on the bottom

  • Query running long issue

    Hi there, I don't know what the capabilities are of SQL logging, so I'm wondering if anyone can help. We have 2 different offices, about 1.5 hours away from eachother. Point A and Point B. People from point B are complaining about lag running queries

  • Making MySQL ORDER BY link dynamic in URL

    I would like to have a dynamic table sorted by a dynamic URL. I have found this script but I am not sure where I am meant to put the DECLARE? This is the MySql recordset: BEGIN DECLARE @SortOrder tinyint SET @SortOrder = 2 SELECT * FROM products WHER

  • *** Urgent - How to view Cursor output in TOAD ***

    Hi, I know how to view the output of a sysref cursor that is an out parameter from an SP, in SQL*PLUS But is there a way to see the resultset of a cursor in TOAD? This is urgent. Thanks for the helping hands. Sun

  • ABAP related?

    Hi, RESULT+0(4) = SOURCE_FIELDS-fiscyear.   RESULT+4(3) = SOURCE_FIELDS-fiscper3   what happened for above statements Thanks in advance please respond with correct answer. RAM