ORA-01427: single-row subquery returns more than one row 01427. 00000 -  "single-row subquery returns more than one row"

Hi All
I have facing the  Single row sub query Error . I tried to resolve , but my condition not working .can please any help to rewrite the query (sub query)
SELECT DISTINCT wdlsv.serial_number
     ,wdlsv.date_shipped
     ,wdlsv.inventory_item_id
     ,wdlsv.organization_id
     ,wdlsv.lot_number
     ,(select distinct engine from xxtc_tr_pr_open_data where chassis=wdlsv.serial_number and rownum=1
       union
       select distinct replace(replace(attribute11,'*',''),' ','')
       from xxtc_chassis_scanout_details
       where serial_number=wdlsv.serial_number
       and operation_line_code ='CHASSIS')                                     "ENGINE_NO"
     ,oola.attribute1     oh_excise_no
     ,msi.attribute16     vehicle_type
     ,bbom.attribute2     model_no
     ,xxst.tariff_code    tariff_code
     ,substr(xxst.color_type,1,1) color_type
     ,(SELECT TO_CHAR(trunc(rt.transaction_date),'RRRRMMDD')
                    FROM rcv_transactions rt,
                           rcv_shipment_lines rsl,
                           rcv_shipment_headers rsh
                    WHERE rsh.shipment_header_id=rsl.shipment_header_id
                       AND rt.shipment_header_id=rsl.shipment_header_id
                       AND rsl.attribute1=wdlsv.lot_number
                       AND rt.organization_id=wdlsv.organization_id
                       AND rt.organization_id=rsh.organization_id
                       AND ROWNUM<=1
                       union
                       select distinct to_char(xxtp.indent_import_date,'RRRRMMDD')
             from xxtc_tr_pr_open_data  xxtp
             where xxtp.chassis = wdlsv.serial_number)                                    "CKD_IMPORT_DATE_YEAR"
     ,to_char(xxtp.indent_import_date,'RRRRMMDD') import_date
FROM WSH_DELIVERY_LINE_STATUS_V  WDLSV
    ,oe_order_headers_all        ooha
    ,oe_order_lines_all          oola
    ,mtl_system_items_b          msi
    ,bom_bill_of_materials       bbom
    ,xxtc_sales_tax_cal          xxst
WHERE 1=1
AND PICK_STATUS              = 'C'    
AND delivery_status          = 'CL'
AND ooha.header_id           = wdlsv.source_header_id
AND ooha.header_id           = oola.header_id
AND oola.line_id             = wdlsv.source_line_id
AND msi.inventory_item_id    = wdlsv.inventory_item_id
AND msi.organization_id      = wdlsv.organization_id
AND bbom.assembly_item_id    = wdlsv.inventory_item_id
AND bbom.organization_id     = wdlsv.organization_id
AND xxst.inventory_item_id   = wdlsv.inventory_item_id
AND xxst.organization_id     = wdlsv.organization_id
and upper(msi.attribute15) not like 'SUB%'
AND WDLSV.SERIAL_NUMBER IS NOT NULL;
Regards
Sanjay 

This forum is for questions about working with SQL*Developer.  The title is "SQL Developer (Not for general SQL/PLSQL questions)" and yours is a general SQL question.  You should get a better answer by re-posting in the SQL and PL/SQL forum in the Oracle Database section.  Please mark this tread as answered and re-post there.

Similar Messages

  • Allow for more than ONE item in a single row?

    Allow for more than ONE item in a single row? I can't use this wonderful program unless I can get more than one field on a row (i.e. 1st name, mi, last name etc)

    Thanks for your feedback. This is something we definetely want to provide next year (can't say when yet).
    If others are interested in this feature please vote on it within the idea tab: http://forums.adobe.com/ideas/1046
    That helps us prioritize our work based on customer demand.
    Randy

  • How to add the rows formatted as table headings, Tables headings are repeated when a table spans more than one page.

    Hi all,
    i am facing problem while generating Test Result word document after successful execution of TestStand.
    The Problem is :
    i want to add rows Formatted as table headings, table headings are repeated when a table spans more than one page(marked as Red).
    Example:
    Page  No. 1
    |     Test case Number  |  Test Step number      |
    |      100                         |            100                   |
    Page  No. 2
    |     Test case Number  |  Test Step number      |
    |      200                         |            300                   |
    Test Result word document should generate with Table headings(marked as Red) in every pages of the document, but i am not getting as per above example.
    Please through light on this.
    Regards,
    Susa.

    Hi Santiago,
    Thank you very much for your valuable reply.
    i want to generate MS-word report for TestStand after successful testing using MS-word2000.
    Test report contains Actual values, Expected values and Pass/Fail status.
    In my program i have customized all  fields i can able to generate test report which contains Verification engineer name , test mode, test date, start time, end time Actual values, Expected values and Pass/Fail status.etc....
    To put all values of test case number, Test step number, Actual values, Expected values and Pass/Fail status in to table for each time, i will
    insert a row into table every time values arrives, once the table exceedes its page size it moves to the next page, next page should start with table row header  but it start with  values of above said parameters.
    so i'm not able to repeat table row header for each page.
    Please find the attached file for your reference.
    Attched file expected.doc  :   This file contains what i wanted to generate MS-word report. Here table row header "Test Case Number and Test Step Number " is repeated in second page.
    Attached file Actual output from source code.doc   :  This report generated from the source code. Here table row header "Test Case Number and Test Step Number" is not repeated in second page.
    Do you know any property to set "repeat as header row at the top of each page" using MS-word ActiveX in CVI/Labwindows.
    i think this information is sufficient for you,
    Still if you need some information please ask me.
    Thanks
    Susa.
    Attachments:
    Actual output from source code.doc ‏25 KB
    expected.doc ‏26 KB

  • CAN ANDROID SEND MORE THAN ONE PICTURE IN A SINGLE TEXT

    Hello,
    Can anyone tell me if Android Razr M is capable of sending more than one picture in a single email and how to do it?  Example:  I have several pictures to send to one person and do not want to send them one at a time if I don't have to.  Thank you

    Some devices if you long press on the text screen have the ability to send more than one photo. However your owners manual usually has this information.
    You also may not be able to send these multiples due to size constraints. Email is much better for these photos. Which of course is also limited by your ISP to around 10 megabytes per send.
    Good Luck

  • More than one portal on a single instance of EP

    Hi,
    I would like to know what is approach that is generally followed for hosting more than one portal on a single instance of enterprise portal server. We have a similar requirement. What about database considerations? Can we use the same database for both the portals?
    Thanks & Regards,
    Suresh

    Hi suresh,
    you can find information about this on:
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/69f45201356248830f1e70fdd7178e/frameset.htm
    Hope it helps You.
    Award points if it helps you

  • More than one style for a single link state?

    RH 8 outputting CHM
    Hello,
    Is it possible to define more than one style for a single link state?
    For example, I would like a link in the footer of my master page to be smaller than the links that appear in the body of my topics. I want to retain behavior, and simply change the point size.
    I can't simply hand format in Design mode, because my link is within a script. Or, am I missing something easy here?
    Thanks much.

    I'm pleased to say I figured out how to change the formatting of a hyperlink embedded within a script.
    Within the script, I used a var string to reproduce the text in my link. Then I used another var to change the string size.
    So, here's the part of my script that produces what I'm after:
    var mailDisplay = 'Was this information helpful? ';
    var str = 'Was this information helpful?';
    var mailDisplay = str.fontsize("1");
    Upon generation of the CHM, the script trumps the CSS. It's a beautiful thing.

  • Query Builder accepts not more than 60 fields in a single dataset

    Query Builder accepts not more than 60 fields in a single dataset. Once we try to enter 61st field - it pops up with a message. Is there some setting that we need to change.
    Please help me.
    Thanx & Regards,
    Rajeev Goel

    Query Builder accepts not more than 60 fields in a single dataset. Once we try to enter 61st field - it pops up with a message. Is there some setting that we need to change.
    Please help me.
    Thanx & Regards,
    Rajeev Goel

  • How to download BI Queries(more than 2) Output into a single PDF file?

    Dear All,
    Requirement:
    How to download BI Queries(more than 2) Output into a single PDF file?
    Purpose:
    The user wants to see 9 queries output into a single file (preferably a zipped file), sent to his email id on daily basis.
    Constraints:
    1) The user may not have SAP GUI on his system.
    2) The user do not want to log into the portal. (otherwise I would not have needed this help)
    Please help me with all possible ways to achieve this task.
    Regards,
    Avinash.

    Hi,
    Please check this links;
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0bfcac90-0201-0010-52a3-d5b270b86ef3
    Information Broadcasting Part 1 u2013 System Parameter Setting
    http://sapbwneelam.blogspot.com/2008/09/information-broadcasting-part-1-system.html
    Information Broadcasting-Part 2 -System Settings
    http://sapbwneelam.blogspot.com/2008/09/information-broadcasting-part-2-system.html
    Information Broadcasting Part 3 u2013 Scheduling the First Report
    http://sapbwneelam.blogspot.com/2008/09/information-broadcasting-part-3.html
    How To... Troubleshoot Information Broadcasting (BEx Workbooks)
    http://sapbwneelam.blogspot.com/2008/09/how-to-troubleshoot-information.html
    Hope it Helps
    Regards
    CSM Reddy

  • HT2736 Can you send more than one song on a single gift card?

    Can you send more than one song on a single gift card?

    By chapters do you mean different slideshows? Or are you referring to chapters in a movie from iMovie or Final Cut Express? 
    If you're referring to an iDVD slideshow then create a playlist in iTunes with the songs you want and then in iDVD's slideshow go to the Media/Audio pane and drag the playlist icon into the music bin.
    OT

  • How set value for more than one variable using a single prompt

    There is a way to set more than one variable with a single prompt?
    e.g. set @CurrentYear and @PasteYear using just a single prompt for @CurrentYear.
    Some hint?
    Thanks
    Luc

    Using repository variables you can set like that.
    Check this link http://gerardnico.com/wiki/dat/obiee/set_variable
    If helps pls mark

  • More than one font in a single paragraph style

    I type academic papers mainly in English but with Japanese annotations (Japanese words in parentheses). With MSWord (hate to compare), I can set both the English and Japanese font styles for a single paragraph style. Can I do this with Pages? At present, I have the paragraph style set for Times New Roman. When I enter Japanese words, they show up as a particularly stiff and non-standard Japanese font. I can change it by hand, of course, but I'd love for the program just to know what font I want the Japanese to show up in.
    Can anyone help me with this?
    MStavros
    PS: I'm using my computer set in Japanese but that should really be relevant.

    Hi Joachim,
    No, this is not possible.
    Unfortunately you can only have one TableCellEditor in a single table cell.
    Peter

  • More than one linkToAction in a single tablecell

    Good morning everybody,
    I need to add a list of linkToAction Elements in one single tablecell. Is this possible? And if yes how?
    Best regards
    Joachim

    Hi Joachim,
    No, this is not possible.
    Unfortunately you can only have one TableCellEditor in a single table cell.
    Peter

  • How do I send pictures from iphoto to a group via email instead of to just one individual? I can't type in more than one name or send the pictures to a group.

    How do I send pictures from iphoto to a group via email instead of to just one individual? I can't type in more than one name or send the pictures to a group.

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • I have 2 problems with Mail. I cannot address an email to more than one recipient. And I receive some emails more than once.

    I have 2 problems with Mail. I cannot address an email to more than one recipient. And I receive some emails more than once. Can you please help?

    Restart your Mac. See if that makes a difference.

  • My iPhone 5s won't turn on. Its battery was drained for more than a month. I tried charging it for more than an hour then pressed reset but it still won't turn on. What could be the problem?, My iPhone 5s won't turn on. Its battery was drained for mo

    My iPhone 5s won't turn on. Its battery was drained for more than a month. I tried charging it for more than an hour then pressed reset but it still won't turn on. What could be the problem?, My iPhone 5s won't turn on. Its battery was drained for more than a month. I tried charging it for more than an hour then pressed reset but it still won't turn on. What could be the problem?

    You said "reset," so Meg assumed that's what you did. But "reset" is not a button; to reset the phone you must hold the HOME and SLEEP buttons at the same time until an Apple logo appears. You may have to hold for up to 30 seconds, and if the battery was completely drained, you will have to restore iOS using iTunes on your computer.

  • If I own more than one Mac, do I have to purchase lion for each one?

    If I own more than one Mac, do I have to purchase lion for each one?

    No... u can click on your purchases holding down the option key and it will allow you to download lion again
    copy this from your applications folder to your other mac's application folder and just click install
    that's what i did.
    i also made a usb key of lion following these instructions...
    using Lion DiskMaker
    http://osxdaily.com/2011/08/02/easy-way-to-make-lion-install-disk/
    < Edited by Host >

Maybe you are looking for