Want to display value instead of "No rows selected"

select 'NOV-02' "Month" , decode(sum(pe.pet_tar_amount),null,'0')"Budget",pt.pfe_nature, t.libelle
from pf_tar_exp pt, pf_tar_expfal pe, thesaurus t
where
pt.id_protf=pe.id_protf
and pt.id_expend=pe.id_expend
and pt.pfe_nature=t.ccode
and pt.id_protf='355.02-USA/001'
and t.langue='A'
and t.thesaurus_name='NAT_DEP_NLP'
and pe.pet_dat>='01-nov-2002' and pe.pet_dat<='30-nov-2002'
group by pt.pfe_nature, t.libelle;
This is my query. When I run it, i get "no rows selected", which is true because there is no data for pe.pet_tar_amount for the given dates. But, I want to display the Month as NOV-02 and 0 for sum(pe.pet_tar_amount).
I would appreciate if someone can help me with this.
Thanks,
Ruby

Technical questions such as this should be posted to one of the technical forums-- Products | Database | SQL and PL/SQL in this case.
It may be as simple as doing an outer join on pf_tar_expfal.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • I need to create a image using some numeric values and i want to display values in image,

    I need to create a image using some numeric values and i want to display values in image, Numeric values be enterd by text file, excel file or user input by dialog box,
    this is the sample if image.
    http://s17.postimg.org/5xvtzbztn/5_01_03_I.png
    128 x 16 Pixels , Back ground Black, Numbers in Red, Should be same as above picture.
    Because i have hundreds of images to create like this.
    If any one can make a script for this it is very good.
    Sorry about my English.
    Thank you.

    Have you checked out data driven graphics?
    https://helpx.adobe.com/photoshop/using/creating-data-driven-graphics.html

  • Display value instead of key in input field with LOV?

    Sorry, this is so basic I'm sure it must be easy but somehow I can't find it in the documentation. The LOCATION table contains a foreign key referencing the CLIMATE table. As well as its primary key, CLIMATE has a column called NAME holding the name of the climate (e.g. temperate, tropical, etc.). The user must be able to update the climate value for the location he is working on. So I have a list of values which looks up possible climate names, the user selects the name he wants and the value gets set in the LOCATION table. That works, but the problem is that the input item displays the key value of the CLIMATE record, and I need it to display the value of NAME instead. Of course I can have another field showing the name, but that is messy, the user doesn't understand the key value and shouldn't have to see it. So how do I make one input field display the NAME, while actually updating the key value from the LOV choice?
    Thanks

    Thank you, Joseba. It does help to some extent. Now I have a non-updatable field with the climate name in it, and below that is the magnifying-glass icon that invokes the list of values. I guess that's not bad, and I can put a label next to the magnifying class saying "Click to select climate". So it's better, but still looks very odd compared to updating fields that are in the LOCATION table itself, where it's an updatable field and the maginfying glass is right next to it. Really the user should not have to behave differently just because the database chooses to hold the value that he wants to alter as a reference to another table.
    Is there at least a way to put the list of values magnifying-glass next to the field that displays teh value, rather than underneath it? They are all inside a thing called "af:panelFormLayout", and I tried setting MaxColumns to 2 in its properties, but it still won't let me move the list-of-values field alongside the other one.
    Thanks.

  • Printing Multiselect LOV display values instead of code

    I have a report with a multiselect LOV (shows text, returns code), so users can choose one or more things based on the description but when they "print" (using the navigation bar print option to open a printer friendly page), the multiselect field on this new page has the codes, not the text. How can I make the text show up here too? (Apex 3.0)

    Oh - I see what I was saying wrong - it's a summary report that is having the problem - I am not returning the details, only a series of counts of various data (there are about 20 columns). Each column is a count of people, broken down by age group and gender. So the :P89_ENVIRONMENT value shows up with its text value when only one is selected from the multiselect, but when more than one is chosen, the text is replaced by the list of values separated by colons.
    I.E. (with one environment selected)
    Environment, Total, Females 10-20, Males 10-20, Females 20-30, Males 20-30 [...]
    Woods             2               1                    0                       0                       1   
    I.E. (with 4 environments selected)
    Environment, Total, Females 10-20, Males 10-20, Females 20-30, Males 20-30 [...]
    11:13:44:67        2            1                0                  0                   1
    The report query looks like this:
    SELECT :P89_ENVIRONMENT, count(gender) Total , (select count(gender) from client where gender_type = F and age > 20 and age <30), (select count(gender) from client where gender_type = M and age > 20 and age <30), (select count(gender) from client where gender_type gender_type = F and age > 30 and age <40) [...]
    Any suggestions on how I can keep a text value in the Environment column regardless of how many are selected?

  • How can i display Value in Report which i select from Multiple select list

    Dear All,
    i am using multiple select List in form with report page.
    When i create new Entry with select Multiple value in Multiple Select List then in report Value display me in below format
    my SQL Query are
    select NAME D, CODE R from  COUNTRY_MAS WHERE ACTIVE_FLG ='Y' order by NAME
    AS:AI:AG:AM these are return value .i want to display NAME in report .
    How can i do this ?
    Thanks
    Edited by: Vedant on Apr 25, 2012 11:14 PM

    Short answer, use the apex_util.string_to_table to convert to a table; then you can either iterate through the table to generate a string of names, or accomplish the same with a bulk operation.
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDFEEJD
    Encapsulate all this within a pl/sql function.

  • Ttitle not displaying the title when no rows selected from a table

    My requirement is display the Ttitle value even when there are no rows fetched from a table. I tried the following -it didn't work. We are on Oracle 9.2.0.7.0. Anybody has thoughts on this... your help greatly appreciated.
    ORACLE_SID = [oracle] ? ABCDE
    PSDEVDB1:>sqlplus babu
    SQL*Plus: Release 9.2.0.7.0 - Production on Mon Jul 10 17:56:52 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter password:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    SQL> ttitle center 'testing'
    SQL> column x noprint
    SQL> select 'x' x from dual;
    testing
    SQL> select *from mytable3;
    testing
    NAME NO
    KUMAR 10
    RAMU 10
    BABU 10
    SQL> select *from mytable3 where no=20;
    no rows selected
    SQL>

    If your concepts are clear for Right outer join, Left outer join and Full outer join you can achieve what you are looking for.
    http://www.oreillynet.com/pub/a/network/2002/04/23/fulljoin.html
    Play with the data and may the force be with you.

  • Combo box displays value instead of label

    I have several combo boxes on a vi that will occasionally start displaying the value of an certain items instead of the string label when an element is selected. The only way to fix it is to deleted the combo box and replace it with another. This has happened several times on the same vi. Sometimes it is ok when the vi is run in the IDE but shows up in an executable. Is this a bug?
    Thanks,
    Bill F

    I think this is to be expected. Your control will have a value with no associated text.
    It would be much more dangerous if LabVIEW would randomly change (e.g. coerce) the value when the strings array gets shorter by some mechanism.
    You have several possibilities, for example:
    (1) Check the value and coerce to the highest valid entry or switch to entry zero.
    (2) Keep the array of strings at constant size, but replace the unwanted entries with empty strings (see attached), the string "out of range", "invalid selection", or similar.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ComboMOD.vi ‏24 KB

  • Display value and percentage of row in pivot table w/o double counting...

    Hello,
    I am wondering how/if one can show a metric value and the row percentage it represents without double counting. So far, I have attempted to duplicate the metric value layer, move the duplicated layer in the measures section of the pivot table next to the original layer (i.e. I have the value twice in the measure section), and set the format of the duplicated layer to "show data as > percent > row".
    This makes the trick in terms of the data I see in the table; however, the values displayed in the table are double counted in the chart. I guess this makes sense since I have duplicated the metric value.
    Any thoughts on how I could tackle this issue differently?
    Thanks,
    JP

    You can do all that in the Pivot Table... Go to the measure properties and Duplicate Layer...than Show as...
    Dont need to duplicate the criteria...
    Antonio
    BExpert Brazil

  • Why do i get integer values instead of decimals when selecting a mysql table through an oracle xe DB?

    Hi
    My company just started a new project that implies migrating every hour operational data from a mysql database located at another company to our main DB (oracle10gR2). Between these two DB, we have an oracle XE DB which contains the database links to both DB and a procedure to get (from mysql) and insert (oracle10g) the values. What happens is that in the mysql DB, the values have decimals and, when i select the table in oracle, i only see integer values (no decimals). Here is an example of the select i use:
    SELECT "v_hour", "v_date", "v_type", "v_tabstamp","v_value"
    FROM "tab1"@mysql;
    How can i work around this problem?
    Many thanks!

    Maybe just a HS_LANGUAGE setting issue.
    You could try that:
    1a) in the gateway init file, please set HS_LANGUAGE=GERMAN_GERMANY.WE8ISO8859P1
    2a) now open a new SQL*Plus session ans select from your table using the gateway based database link
    => if the values are now including the decimal part then your foreign database is set up to use a comma as the decimal separator and you have to make sure that the HS_LANGUAGE contains a territory that uses as decimal separator a comma.
    If you still do not get the decimal values, then change it to:
    1b) HS_LANGUAGE=american_america.we8iso8859P1
    2b) Make sure you start again a new SQL*Plus session (the gateway init file is only read when you use the database link in your session for the first time (or explicit closed it before). Select again from your table.
    => is the decimal part now visible?
    More details can be found in the gateway note: Gateway and Decimal Digits(Doc ID 1453148.1) available from My Oracle Support portal.
    - Klaus

  • Display values of a single field in a multiple rows in a table region

    Hi Tech-Gurus,
    I want to display values of a single field ( which is in a table region) in multiple rows and also need to restrict the values from decimal number. If i click save, then it will throw exception "Decimal not allowed".
    xxxxxx
    yyyyyy
    Reg.No
    1234
    5678
    7654
    I need to display the values of REG.NO in different rows like,
    1234
    5678
    7654
    and also need to validate as well against Decimal values.
    Please help me with the code how i will iterate ?

    Hi,
    I am assuming you are talking about displaying substrings from the Reg No in different rows. For this you would need to write a query which identifies the substrings and creates a separate row for each (ensure you choose values for all other columns in the table row). Kindly let me know if the understanding is incorrect.
    To validate against decimal value you can use the java code by checking the difference of the number and the number on which modulus has been applied. Hope that helps.
    Regards
    Sumit

  • To display value in html: textarea in struts

    Hello,
    I want to display value in <html:textarea> in struts application from my userdefine FormBean.
    i tried like this
    <html:textarea property="documentNumberList" value='"<bean:write name="QualityForm" property="displayDocumentNumber">" ></html:textarea>
    I am not getting success.
    I would be appriciate to you if anyone could let me know what is the solution of this problem ? or send me one example.
    Thanks
    Rajnish
    [email protected]

    Hi,
    That did'nt solve my problem. Actually i am trying to get the arraylist data one by one into different textareas. There are two arrays one is quesArray and the other quesIdArray. I need the quesIdArray in the individual text areas.How can i achieve this?
    I am using the following code to do that.
    <logic:iterate id="item" name="selectionCriteriaForm" indexId="index" property="quesArray">
    <tr><td><li><em><b><bean:write name="item"/> </em></li></b></td>          
    <td><html:textarea property="quesIdArray" cols="50" rows="2" name="selectionCriteriaForm" onkeyup="limitTextarea(answer<%=i %>,5,50)" />          
    <br></td></tr>
    <% i=i+1;
    %></td></tr>          
    </logic:iterate>
    Pls help me on this.
    Thanx in advance.

  • To display values  in Column Header

    Hi,
    I wanted to display values from viewobject as a column header in af:table
    <af:column sortProperty="Qty" sortable="false"
    headerText="#{bindings.EmpPartHeader12.hints.Qty.label}"
    headerClass="TableNoHeader"
    inlineStyle="background-color:#D3D3D3; border-color:Gray; color:Black;"
    align="right" id="c1">
    <f:facet name="header">
    <af:outputText value="#{row.Qty}" id="ot8"
    />
    </f:facet>
    <af:outputText value="#{row.Cost}" id="ot4"/>
    </af:column>
    I am using <af:outputText value="#{row.Qty}" id="ot8"/> in header class of af:column but getting blank as column header.
    Please help on this.
    Regards
    Vasu

    Hi user13818315,
    Please specify in details what you want to display in column header ? Say there are 5 rows in your table do you want to display the first rows data as column header ?
    Please explain...
    Thanks
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to display the display value of a select list

    I want to display the display value instead of the return value of a select list but don't know how to do it, can someone help me?

    When you created the select list item, you are ask to provide a list of values query which can either be a SQL query or a Static List, which both follows the pattern of
    Dispaly;Return.
    Example:
    SQL query -
    select 'Yes' col1, 'Y' col2
    from dual
    Static -
    STATIC:Yes;Y
    which will display 'Yes' but will actually, return 'Y'.
    how did you set your select list item?
    Thanks,
    Marilyn

  • Display value and description of one field in alv grid

    Hi Folks,
       I want to display value and description of one field as one column in alv grid.
    for example iam having Xfield = 01,02,03.
    and 01 iam having text value as xxx,
    01 xxx
    02 yyy
    03 zzz
    Im report display the values are displaying as 01,02,03..
    but i want to display it as 01 xxx,02 yyy, 03 zzz.
    Please do needful.
    Thx.

    Hi, swetha
    You can do this with "concatenate".
    example:
    In you code check where you final internal table is getting filled up before that do this concatenate and then append it.
    data t_text type string.
    t_text = textfield
    CONCATENATE 'Xfield'
                     t_text
                      INTO wa_workarea SEPARATED BY space.
    cheers,
    Bhavana

  • How to Display a message after inserting row in table............

    Hi
    I want to display a message after inserting rows in table like *'you have inserted a new row successfully*'.
    i am using the createinsert ADF Button to insert the rows in table.after that i am comitting it.
    after commiting i want to display message for the user.for this what i need to do.
    Please help me.
    Sailaja.

    user10860137
    Can you please explain me the each line in the code briefly.
    +public String saveButton_action(){+
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    +// note "!" operator has been removed from the default code.+
    +if(operationBinding.getErrors().isEmpty()){+
    FacesContext ctx = FacesContext.getCurrentInstance();
    FacesMessage saveMsg = new FacesMessage("Record Saved Successfully");
    ctx.addMessage(null,saveMsg);
    +}+
    return null;
    +}+
    And i have requirement to show the message on favcet "status bar".not in a popup window.(from the above code the message is showing in popup window. )the Layout i am using is PanelCollection.
    can you tell me what i need to do.
    Thanks
    Sailaja.
    Edited by: sj0609 on Mar 19, 2009 8:03 AM

Maybe you are looking for

  • How do I find the breakdown of GB's used in my "My Documents" folder?

    My MacBook Pro has been running very slowly - I see the beach ball all the time. After looking through the topics I realized that it's because I have: CAPACITY - 148.73GB AVAILABILITY - 22.03GB USED - 126.7GB My my documents folder is currently using

  • Transferring iTunes between user accounts

    I have just moved my iTunes library from my PC to my MacBook pro via Migration Assistant, however, I did this after my initial set up. So it has created a new user profile, profile B, which my iTunes library is now in. Question: how do I now move/mer

  • Role approver removed from role in GRC

    Hello Experts, I am a fresher to SAP GRC. Please help me on the below issue. In SAP GRC 5.3,  for some roles role approver has been removed and some roles automatically uploaded to GRC. The role that are uploaded to GRC should not be and while checki

  • KP06 Download problem

    Hi All, I am using ECC 6.0. I want to automate the process of downloading data from Kp06 to Excel. Process: KP06 tcode. When I click on the Overview Screen button on KP06 tcode it takes us to excel format. From there i need to download the data to PC

  • PRINTING IN PSE 10

    hi; i am using pse 10 and  an epson 2880  printer. while in editor, and i try to print a single print, the "print" dialog box has its  preset default settings. how do i change these default settings.  thanking you in advance, draper