How to put a text in Child query

HI,
I need to put a text when dont find child records which says "PO not found",
Oracle 10G
report design consist of one man group and child records
ex:
main subquery
P44001 desc BOMqty total date1 qty line1 ponum1
....................................date2 qty line12 ponum1
....................................date2 qty line3 ponum2
P44002 desc BOMqty total “no po found”
P44003 desc BOMqty total date4 qty line4 ponum1
....................................... date2 qty line2 ponum1
....................................... date2 qty line5 ponum2
Thanks,
Harsha

Hi, Harsha,
That sounds like a job for OUTER JOIN.
For example, using scott's tables:
SELECT       d.deptno
,       d.dname
,       NVL2 ( e.deptno
            , e.ename
            , 'No emp found'
            )     AS ename
FROM              scott.dept  d
LEFT OUTER JOIN      scott.emp   e  ON  e.deptno  = d.deptno
ORDER BY  d.deptno
;Output:
`   DEPTNO    DNAME             ENAME
        10    ACCOUNTING        CLARK
        10    ACCOUNTING        KING
        10    ACCOUNTING        MILLER
        20    RESEARCH          JONES
        20    RESEARCH          FORD
        20    RESEARCH          ADAMS
        20    RESEARCH          SMITH
        20    RESEARCH          SCOTT
        30    SALES             WARD
        30    SALES             TURNER
        30    SALES             ALLEN
        30    SALES             JAMES
        30    SALES             BLAKE
        30    SALES             MARTIN
        40    OPERATIONS        No emp foundNote deptno=40, which occurs in dept, but not in emp.
If ename happened to be NULL in emp, then the NULL would appear in the ename column. If ename can not be NULL, then you can replace the NVL2 expression witH
NVL (e,ename, 'No emp found') 
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
If you can show the problem using commonly available tables (such as those in the scott schema) then you don't have to post any sample data: just post the results and the explanation.
Always say which version of Oracle you're using (e.g., 10.2.0.4.0). There is no version 10<b>F</b> or 10<b>H</b>, so it's kind of silly to say you have 10<b>G</b>
See the forum FAQ {message:id=9360002}

Similar Messages

  • Dvt:barGraph how to put anotation text at multiple positions

    We are rendering some data in the form of bargarph using dvt:barGraph.
    Here we want to achieve couple of usecases which are as following
    1) we need to put anotation text at multiple positions on the graph.
    2) We are using Reference Objects in the bar graph. The text that appears as tooltip for these Reference Objects, we want to render that text embedded in the reference objects as static text.
    how to acheive the above?
    I am using Jdev 11.1.1.3.0
    Thanks
    Ajay
    Edited by: Ajay on Mar 13, 2012 6:06 AM

    The "clipboard" service for copy and paste between applications on a PC is usually a built-in function of the operating system - Mac, Windows, Linux, etc. There are applications available for extending the clipboard feature; I use one named Clip Trakker which allows me to save multiple "text clips" of ''[say]'' text from the internet which are saved in Clip Trakker, and then paste each of those "text clips" into a different program like Word ''[I actually use Libre Office]''.
    I am not familiar with applications for Mac OSX, so I can't make any recommendations about an application.
    As far as extensions for Firefox, there are many extensions that come up in a [https://addons.mozilla.org/en-US/firefox/search/?q=clip&appver=any&platform=all search for "clip"] at the Add-ons Mozilla Org website. You can look to see if you can find any that will do what you want to do, like maybe this one: <br />
    https://addons.mozilla.org/en-US/firefox/addon/clipboard-plus/

  • How to Pass a values to child query/fram

    HI,
    I need to put a text when dont find child records which says "PO not found",
    Oracle 10G reports
    report design consist of one man group (main repearting fram) and child records (nother repearting fram),
    ex:
    main subquery
    P44001 desc BOMqty total date1 qty line1 ponum1
    ....................................date2 qty line12 ponum1
    ....................................date2 qty line3 ponum2
    P44002 desc BOMqty total “no po found”
    P44003 desc BOMqty total date4 qty line4 ponum1
    ....................................... date2 qty line2 ponum1
    ....................................... date2 qty line5 ponum2
    not sure, if there a way i can do this with frames or sql
    Edited by: HarshaJ on Oct 31, 2012 12:50 PM

    I think that you can use the JavaScipt as follow to pass a data from child window to parent window
    <HEAD>
    <script>
    function passData(){
    opener.form1.test1.value=form2.test2.value; //pass the value of test2 to the parent's test1
    window.close();
    </script>
    </HEAD>
    <BODY>
    <form name=form2>
    <input name=test2 type=text>
    <input type=button onclick="passData()" value=CLOSE>
    </form>
    </BODY>

  • How to put a text in upper left hand corner for all the application?

    I want to put a text in upper left hand corner for all the pages on application?
    I don't want to put one page by another.
    Thank you.

    If you put it in a region on page zero, it will be inherited by all pages of the application.. Literally in the upper left corner? Even the login page? You could also modify the template page that your using from your theme, so that all pages would have this attribute, whichever you are more comfortable with..
    Thank you,
    Tony Miller
    Webster, TX

  • How to put digital text on ipod? playing video on tv?

    I WANTED TO KNOW HOW TO TRANFER DIGITAL TEXT TO AN IPOD.I DOWNLOADED IT FROM ITUNES AND IT CAN'T BE DRAGGED ON MY IPOD. also do i need a special cable to play videos on a tv or will a stereo audio cable work?
    thanks

    I WANTED TO KNOW HOW TO TRANFER DIGITAL TEXT TO AN IPOD.
    What is digital text?
    I DOWNLOADED IT FROM ITUNES AND IT CAN'T BE DRAGGED ON MY IPOD.
    Do you mean you downloaded it form the iTunes Music Store? (iTunes is a program. You cannot download from it.)
    What is it?
    also do i need a special cable to play videos on a tv or will a stereo audio cable work?
    An audio cable will get the audio but not the video.
    That is why it's called an AUDIO cable.

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • How to put long text by idoc into FB01?

    Hi,
    I am using Idoc ACC_DOCUMNENT to create FB01 transaction but there is place to put the long text for the item.
    Do you know how to update the long text using an Idoc?
    please do Not reply "try using function SAVE_TEXT".
    Thanks guys...

    I'm having what I think is a similar problem but haven't found a soulution...
    I have a phone number for a contact that is 41 characters long (it's numbers and a couple commas (",") for pauses.
    When I touch the number to have my iPhone dial it - the iPhone does nothing.
    If I touch other numbers for the same contact (that are shorter) - it works.
    Is there a maximum lengh for phone numbers?
    Or is there something I should do? (ie. is there a way to dial the first half, and then press something ?? that would have the iPhone dial the remainder of the number?)
    Thanks!

  • How to display long text in SAP Query ALV layout? It only show 129 char now

    I have a SAP Query which show a remark field(Max length more than 500 char), but it only show max length 129 char now. In fact, the lenght of remark field text is more than 300, and i had debug the source code, the field text value do is correct, its length do is 376.
    Do anybody can help me solve the issue, let the query ALV layout can show the long text field value?
    thanks very much in addvance.

    Hi,
    ALV can show only a restrict value length around 128 characters, many experts said that we can not extend. many suggestions is split text into some column.
    Regards,

  • How to put a text into a picture package.

    I want to print a set of 6 pictures onto a single sheet of paper with a heading on the top.  I can do this by exporting all 6 pictures as jpegs, creating a page in my favourite word processor or publishing package and doing it all there.
    However, Lightroom 3 allows me to create a page with the 6 photos, but I can't see any way to put a heading on top.  Is there any way to do this?
    While on the subject, is there any way to put a freeform text label below each picture?
    Thanks
    Tony

    If you put it in a region on page zero, it will be inherited by all pages of the application.. Literally in the upper left corner? Even the login page? You could also modify the template page that your using from your theme, so that all pages would have this attribute, whichever you are more comfortable with..
    Thank you,
    Tony Miller
    Webster, TX

  • How to put the text "BottomCENTER" from inside JLabel1 out of  Jlabel1??

    Dear friends:
    I have following code,
    It can run.
    I hope to move the text "BottomCENTER" from inside JLabel1 out of Jlabel1,
    I mean Text "BottomCENTER" should be display outside of JLabel1
    import java.awt.Color;
    import java.awt.GridLayout;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.SwingConstants;
    public class AlignmentExample {
      public static void main(String[] args) {
        // Create the labels and set alignment
        JLabel label1 = new JLabel("BottomCENTER", SwingConstants.CENTER);
        JLabel label2 = new JLabel("CenterLeft", SwingConstants.LEFT);
        JLabel label3 = new JLabel("TopCenter", SwingConstants.CENTER);
        label1.setVerticalAlignment(SwingConstants.BOTTOM);
        label2.setVerticalAlignment(SwingConstants.CENTER);
        label3.setVerticalAlignment(SwingConstants.TOP);
        // Add borders to the labels . . . more on Borders later in the book!
        label1.setBorder(BorderFactory.createLineBorder(Color.black));
        label2.setBorder(BorderFactory.createLineBorder(Color.black));
        label3.setBorder(BorderFactory.createLineBorder(Color.black));
        label1.setBounds(10, 10, 200, 150);
        // Put it all together . . .
        JFrame frame = new JFrame("AlignmentExample");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel p = new JPanel(new GridLayout(3, 1, 8, 8));
        p.add(label1);
        p.add(label2);
        p.add(label3);
        p.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
        frame.setContentPane(p);
        frame.setSize(400, 500);
        frame.setVisible(true);
    Thanks so much!!

    change following JLabel1
    | |
    | |
    | |
    | JLabel1 |
    | |
    | |
    | |
    into following Jlabel1:
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    JLabel1
    Thanks

  • How to put my text messages in order by timestamp?

    I noticed today that some of my text messages lost their time order. A few of them I sent yesterday and now they appear with yesterdays timestamp but, they are arranged after the texts I've sent today. Why is this?

    A text message is listed in the Messages app based on the last text received. If you started a thread yesterday, or last week, then started another one with someone else later, when you start the next one, it appears on top. However, if someone responds to yesterday's thread, then it would move to the top. Is that what you are referring to?

  • How to put header text in a PO programatically.

    Hi everybody ,
    Is there anyway in which I can update Header Text in PO using BAPI_PO_CHANGE or some other function module.
    Thanks in advance for your help .
    Regards
    Saurabh

    I think I have found  out !!
    Regards
    Saurabh

  • How to put in text mark in some points in AreaSeries?

    I have a AreaSeries, I'd like to mark some of the points, either with text or image. I am not sure which method to use, I'd like to use default behavior for most of the other series points.
    Thanks in advance.

    I tried to create a customized itemRenderer, but failed
    Here is the piece of code:
    <mx:Script><![CDATA[
    public function myRenderer(item:Object): ClassFactory {
         if (item.type == "1") {
                return new ClassFactory(CrossItemRenderer);
         } else {
                 return new ClassFactory(BoxItemRenderer);
    ]]></mx:Script>
    <mx:AreaChart>
        <mx:series id="testseries" itemRenderer="myRenderer"
    Error message: Definition of myRenderer could not be found
    Implicit coercion of a value of type Function to an =unrelated type Class
    </mx:AreaChart>
    Please advise.
    Thanks.

  • How to Put scrolling text below masthead?

    Hi,
    I have written a portal component which has got marque text.
    I want to display this marque text just above the top level navigation and below the masthead.
    I added my component in the framework but then when I login only my component is displayed.
    Regards,
    Anagha

    Hi,
        If it is a portal component, you can create iView from the component directly. Open default framework page (DFP) and right click the iView and add it to DFP. Make sure you have set entry point property of iView to Yes. In the DFP, click on page layout radio button and arrange the iView next to masthead and save it. Logout and login back to check. I would advise to check these with copy of DFP since any wrong changes done to standard DFP can cause other portal problems.
    Regards,
    Harini S

  • How to put net line in SQL query?

    Hi,
    I am creating text file using utl_file and using new_line function. File is created on server side with linux platform. Then I email this txt file to user having windows on machine. On windows that new_line character does not appear and a box appears there instead. Any solution or hint for this?
    Thanks,

    user12007410 wrote:
    Hi,
    I am creating text file using utl_file and using new_line function. File is created on server side with linux platform. Then I email this txt file to user having windows on machine. On windows that new_line character does not appear and a box appears there instead. Any solution or hint for this?
    Thanks,As the previous answer says Windows uses CR (carriage return) and LF (line feed) characters (CHR(13)||CHR(10)) for newline characters, whereas unix based systems, such as your linux server, just uses LF (CHR(10)) to signify a new line.
    If the file produced on a unix based server is FTP'd to a windows based system using ASCII format in the FTP program, then the FTP process will automatically convert LF to CR/LF and visa versa if you send them back the other way.
    Because you are just emailing the file direct from your server to the windows client, it is being sent effectively in BINARY mode (i.e. as it was created) and as such the windows machine get's unix style newlines.
    Either explcitly convert your newline characters to CHR(13)||CHR(10) when writing them out to the file or transfer your file using FTP in ASCII mode to cause the conversion to take place.

Maybe you are looking for