Union Order by causing issue in SetWhereClause

Hi,
I am extending a CO and adding new query to the VO query.
I added where clause to the VO query. Also added Union. The Union is the same VO query with another where condition. VO query default had a Order by clause.
Now the total query looks like this.
select * from
(select a, b
from x, y) QRSLT
where ...
UNION
select * from
(select a, b
from x, y) QRSLT1
where ...
order by upper(a)
"Order by" is getting added since it is there in the original VO query.
Now I am getting the error as "java.sql.SQLException: ORA-01785: ORDER BY item must be the number of a SELECT-list expression"
The above query without the order by is working good. What is the best way to fix this?
Thanks,
HC

The problem is that you're using a UNION. The ORDER BY clause has to refer to a column in the query as a whole rather than just the second part of the UNION. In that situation, Oracle expects either a column position or the name of one of the selected columns.
Thanks
--Anil
http://oracleanil.blogspot.com/

Similar Messages

  • Sync To CRM Time - Does This Cause Issues For Anyone Else?

    I have been a long-time Eloqua user. Primarily, the companies that I have worked are B-to-B and serve small businesses.  In the small business lead generation world, when you wait to respond to leads - you lose. The first one in usually gets the deal.  We have all of our lead generation activities running through Eloqua, including our PPL campaigns where multiple competitors are also responding to RFQ's and also our inbound sales call center uses it (via form) to submit leads in order to take advantage of the de-duplication and validation power in Eloqua.  The latter causes my sales team to wait 15 minutes while they are they are waiting for the lead to get created and transferred to them in CRM. 
    Here is my issue.  At best, it takes Eloqua 15 minutes to sync the leads to SFDC.  These programs are "straight to queue" integrations too.  I am running integration events straight from the form processing steps, so there are no program builder delays here.  The guys in Support have been really great, and have been working with me to see what can be done to decrease the lag time, but 15 minutes seems to be the acceptable rate. So, I am starting to think of ways to take them directly to SFDC and just live with the issues of duplicates and no validation.
    I can't be the only one that this causes issues for.  Does anyone else have this issue?

    Hi John,
    I too have had these issues.  The main problem is not program builder.  The integration queue/engine is prone to backlogs.  Rumor has it that the integration engine is shared by the campaign engine and a bunch of other services in the platform.  Either way, the integration queue will always have a lag.
    My solution was:
    1.  Push data from ELQ form to a SFDC Web-toLead Form IF ELQ contact has blank LeadID and ContactID (does not exist in SFDC) -- this creates leads instantly in SFDC.
    2.  Run an apex trigger from SFDC to do a blind form submit to Eloqua with the email address and SFDC Lead ID for the leads created from step1 -- this will ensure that creating duplicate leads in SFDC is minimized.
    3.  Send notifications from ELQ form to Sales Reps if ELQ contact already exists in SFDC as Lead or Contact. -- even without the updates on the lead or contact records in sfdc, this gives the reps an immediate heads up. 
    4.  Send the rest of the information that I couldn't fit into the post-data-to-server step for the new lead.
    Of course I also baked into the form processing steps a bunch of conditions to mitigate spam.

  • Sales orders with credit issues taking availability stock

    Hi,
    I am doing confirmation using Global ATP in APO. The confirmation is well done, but the confirmed quantity for sales orders with clients that have credit issues is taken the available sotck for other sales orders with ok clients that I want to confirm the quantity they ordered.
    For example:
    Stock: 10 PC
    Client A order 15 PC and 10 are confirmed, but the ordered is retained becuse of credit issues with client A.
    Then client B order 3 PC, but nothing is confirmed because the ordered for client A is reserving the stock (note: this would be ok if client A had not credit issues).
    So, I want that the 3 PC for client B are confirmed and the 10 PC not reserved for the cient A while client A has credit issues.
    How could I configured, so that the orders with credit issues do not reserve stock for the incoming orders?
    Thanks a lot.

    Hi DB49,
    thanks for the quick answer.
    I checked the configuration in the R3 and seems to be fine. To prove it, I disconnect APO and did the availability check in the R3 system and it is working fine; the orders quantities that are blocked because of credit issues, do not reserve stock for incoming orders.........son new incoming orders are well confirmed.
    But after connecting APO the problem continues. I checked the next points.
    In R3 transaction CO09: takes to the APO screen and you see the ATP available quantity OK (do not consider the quantities of the credit issues orders). But at the moment that you make the order (VA01) it does not confirm any stock and if you select the line and go to the ATP screen (the same you get from the CO09) the quantities of credit issues orders are taken into account..the ATP availability quantity changes from the first going directly from the CO09.
    What could it be?
    Note: it was working fine with APO, I started to have the issue after implementing note 1262475 in APO. This note was becuase the BAPI_APOATP_CHECK was not brigning any value for the ATPQTY_***.
    Thanks a lot!!!

  • Can too large a folder cause issues and effect performace of my Mac Pro

    Hi, I have a 180 gb folder filled with important data within my Home folder. This folder has a many subfolders as well. The folder is on my startup drive and where I have Snow Leopard installed. Can too large a folder cause issues with my mac and effect performance? Thanks

    another way to ask, would you make better use of, and improve I/O and performance, if you used your other drive bays? yes.
    Boot drives with even less than 50% free is probably not a good idea. All depends on whether 200GB is on 1TB or on 500GB drive. And how fragmented free space even.
    Lifting, loading and writing or copying 4GB files of course does have an impact, so if you work with 2GB files in CS5....
    Having a dedicated type boot drive, media drive (and isolate media and library files) as well as scratch drive is normally done with Mac Pro.
    The biggest bang in performance: lean mean SSD boot drive.

  • How to restrict the GR for Production Order when Goods Issue is not done

    Hi Gurus
    How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
    Pls suggest best solution.
    Abhijit.

    Hi,
    You can club together the GI nad GR at the time of confirmation..
    I.e Backflush for the components and auto GR for the Product.
    So that you can stream line the Process.
    The best Option would be to use the User Exit:
    Enhancement - MBCF0002
    Functional Module - EXIT_SAPMM07M_001
    Include - ZXMBCU02
    Refer below link for further details..
    How to stop the goods receipt before issueing the goods for production orde
    Regards,
    Siva

  • MovieClip Filter Causing issues with EventListeners (mouseEvent.ROLL_OVER)

    Hello,
    I have been working on a flash photo gallery for the web. It loads thumbnails from an xml file into a loader which is then made the child of a movieclip.
    The thumbnails are animated and triggered with mouse events of ROLL_OVER and ROLL_OFF. I have this working, or appearing to, when the movieclip containing the loaded thumbnail has no filters applied to it.
    I want add a drop shadow on the ROLL_OVER event and remove the drop shadow on the ROLL_OFF event. I also have this working, however my problem arises when I mouse over the very edge of the movieclip. This cauese the ROLL_OVER and ROLL_OFF function to fire in rapid succession, creating a flashing dropshadow. This looks aweful and I really have no idea what would be causing this issue.
    Thanks in advance for any advice!
    Regards.

    Thanks for the reply.
    I also found it difficult to believe that the filter was causing issues with the roll over/out events. I will expand on the example code you provided so you get an idea of what I am trying to accomplish and where my issues arise.
    EDIT: I should add that the issue is only present when I tween AND add a filter. If I only add a filter or if I only tween I have no issues but the combination or adding a filter and tweening causes the OVER/OUT events to fire rapidly.
    //This code does not result in a flashing animation
    myClip.addEventListener(MouseEvent.ROLL_OVER, overClip);
    myClip.addEventListener(MouseEvent.ROLL_OUT, outClip);
    function overClip(e:MouseEvent):void
       myTween =  new Tween(myClip, "scaleX", Regular.easeOut, myClip.scaleX, 1.5 , 3, true);
       myTween =  new Tween(myClip, "scaleY", Regular.easeOut, myClip.scaleY, 1.5 , 3, true);
    function outClip(e:MouseEvent):void
       myTween =  new Tween(myClip, "scaleX", Regular.easeOut, myClip.scaleX, 1 , 3, true);
       myTween =  new Tween(myClip, "scaleY", Regular.easeOut, myClip.scaleY, 1 , 3, true);
    //However if i add these lines of code to add and remove a filter I can observe the flashing effect when the mouse is near the edge of the moveclip
    myClip.addEventListener(MouseEvent.ROLL_OVER, overClip);
    myClip.addEventListener(MouseEvent.ROLL_OUT, outClip);
    function overClip(e:MouseEvent):void
       myClip.filters = [myDropShadowFilter];
       myTween =  new Tween(myClip, "scaleX", Regular.easeOut, myClip.scaleX, 1.5 , 3, true);
       myTween =  new Tween(myClip, "scaleY", Regular.easeOut, myClip.scaleY, 1.5 , 3, true);
    function outClip(e:MouseEvent):void
       myClip.filters = [];
       myTween =  new Tween(myClip, "scaleX", Regular.easeOut, myClip.scaleX, 1 , 3, true);
       myTween =  new Tween(myClip, "scaleY", Regular.easeOut, myClip.scaleY, 1 , 3, true);
    Is there something obviously wrong with this approach to adding a filter/tweening? I am fairly new to flash.
    Thanks again!
    Message was edited by: Dafunkz

  • MDP to HDMI adapter causing issues while connecting Macbook air late 2013 edition to Projector. Projector shows grains on the display.

    MDP to HDMI adapter causing issues while connecting Macbook air late 2013 edition to Projector. Projector shows grains on the display.

    Sounds like you may have been in extended display mode. If so, all you had to do was drag a window to the projector display. Or, if you wanted mirrored mode, in display preferences select check mirror display.

  • Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

  • When I plug in my Lacie Firewire 800 drive it causes certain apps to crash. Chrome will immediately crash when I open it, so will DVD player. It's only when I plug in my Firewire 800 drive, USB does not cause issues. What's the deal?

    When I plug in my Lacie Firewire 800 drive into my Mid-2009 Macbook Pro running Mountain Lion - 10.8.2,  it causes certain apps to crash. Chrome will immediately crash when I open it, so will DVD player. It's only when I plug in my Firewire 800 drive, USB does not cause issues. What's the deal?
    I've restarted, verfied the disk, repaired permissions, smc reset.. don't know what else to do..

    Contact Lacie since it's their product you are having issues with. 

  • How to check which RFCs causing issues in the system and RFC response times

    Hi,
    We have an issue with the RFC response times in CRM and need investigstion. We need to know which Which RFCs causing issues and how we can solve the problems.
    Regards

    Hi,
    chek the below code
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
    EXPORTING
    FILE = W_FILENAME
    RECEIVING
    RESULT = W_RESULT
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    WRONG_PARAMETER = 3
    NOT_SUPPORTED_BY_GUI = 4
    others = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-* MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF W_RESULT IS INITIAL.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
    EXPORTING
    DIRECTORY = W_FILENAME
    RECEIVING
    RESULT = W_RESULT
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    WRONG_PARAMETER = 3
    NOT_SUPPORTED_BY_GUI = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    ENDIF.
    ENDIF.
    IF W_RESULT = 'X'.
    RC = '1'.
    ELSE.
    RC = '0'.
    ENDIF.
    reward if helpful.
    Regards,
    nagaraj

  • Do multiple bindings still causing issues for PowerPivot workbook in SharePoint 2013

    Do multiple bindings still causing issues for PowerPivot workbook in SharePoint 2013 as they did in SP2010? Here is the link about 2010 issue :
    http://support.microsoft.com/kb/2712071

    Hi Norm,
    I searched internally, and I couldn't find any information related to this issue applied to SharePoint 2013, it shouldn't exist in SharePoint 2013.
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • Reader causing issues with dropped underscores in courier new font

    When converting a microsoft word document in 2013 or 2007 to a PDF is causing issues with dropped underscores.  It only seems to happen in courier new.  For instance if I have _someCode, when converting this over to a PDF file I will sometimes see _someCode and sometimes I will see someCode.  If I open this file in a different pdf reader then it looks correct 100% of the time.  If I copy and paste into another application then the underscore shows.  This is a major issue for people putting code into a PDF document as underscores are important and courier new is what we often use.

    I love how quick you are to throw Microsoft under the bus.  Often it is their fault.  In this case I believe you are 100% wrong and absolutely short sighted to ignore this.  As I said in my original email, which you apparently missed, I have tried this in multiple PDF viewers and Adobe Reader is the ONLY reader that misses the underscores.  Foxit, PDF Exchange and Sumatra all render it perfectly.  Adobe reader missed 6 underscores in my document that has 18 underscores.  30% of the time in this document Adobe Reader makes the underscore invisible.  And if I switch the zoom to 100% instead of 148% (which is the default for me for some reason) then Adobe Reader misses 7 of them.  This doesnt occur in the other readers.  Blame Microsoft all you want but the simple fact is that Adobe Reader has issues reading courier new's underscores.  It needs to be fixed.

  • Exchange upgrade causing issues with internal wiri...

    Recently our exchange was upgraded to accommodate bt infinity and at the same time our broadband started playing up. we called bt and I spent 1.5 hours checking and re checking equipment with the call center. Tests were done with the hub at either end of the internal wiring. All the tests were still showing faults even with hub connected to the test socket. They asked me to leave connected for 24 hours while they monitor the line. They promised to call me back which they did not. I called them again the following day to be told I should have left the hub in the test socket which I was not told the previous day. I then had to wait 48 hours while they monitored the line this time in the test socket. All the tests still showed the fault was still there so an engineer called out.
    The hub was still in the test socket when engineer arrived and the first thing he did was hook up his test equipment to the test socket and he stated there and then that there was nothing wrong with the line but it had been throttled down. 2 minute phone call and 10 minutes later broadband was back and working perfectly at the test socket. He checked the internal extention and the faults were being thrown up by an extension that has been in place for 10 years +. He stated to me that the new equipment installed in the exchange was more advanced and did more line checks so, although this equipment has been used for Internet with BT for 10 years it is no longer adequate.
    All of this I find understandable but the whole way that BT handled this from day 1 of my first call has been appalling. BT openly admitted that the original engineer calls were handled badly and we were credited £9 for the lack of services we had for overly long time. However we are now, 2 months after this, faced with nearly £130 charge for the engineer visit which, looking back with the info I have now, was completely unnecessary. Had the engineers on the phone bothered to reset the line while hub was in the test socket when they were allegedly monitoring it for 48 hours they could have told me there were no faults on their equipment up to the socket and I would have sorted out the internal wiring myself. Even now I can find mention on the Internet of old wiring causing issues but no specific posts to do with exchange upgrades potentially meaning that you need to upgrade internal wiring or mention by the BT call center itself on any of the calls I made to them. All I was told was that everything up to the main box is BT and everything after that mine but since we have made no changes to the wiring we did not think it was applicable until the engineer arrived and told us what he told us then. Yesterday I called Bt again around 9am to dispute the charge. I was informed that because the fault was with our equipment the charge stands. I explained all of the above and I had my case put to the review team. I was told I would get a call back within 4 hours which I did but the phone rang 3 times and as I answered they hung up. I then got a text saying they had tried to call and asked for me to call back which I did to be told that his computer wasn't working. He took my details and said someone would call me back which no one did. I chased again to be told that someone would definitely call me that day. No one did. I chased again today to be told the decision still stands. He has put to final review and promised a call back within 5 days. Until this is resolved direct debit is cancelled. To the letter of the contract we have with BT this is our charge to pay I know that but this could have been avoided if the information was out there on the net, if the original checks done over the phone were done correctly or if I had been told this directly by Bt themselves prior to the engineer being called out which is why I am posting this here so hopefully no one else falls into this trap.

    You're right I'm not connected to the BT infinity cabinet. But the BT Infinity cabinets all still route back through the exchange that I am connected to -
    http://www.ichilton.co.uk/blog/phones/faster-broadband-bt-infinity-fibre-to-the-cabinet-coming-to-in...
    Quote :
    What this modem does is connects using VDSL from your home to the VDSL cabinet using the existing copper wires, on to the DSLAM, back to the exchange (over the fibre) and on to BT’s core network.
    Your phone line is then still terminated in the original cabinet for telephony (using the cross connect between the old and new cabinets I mentioned above) and back to the exchange over the original multi pair copper cable as it always has done.
    http://www.robertos.me.uk/html/fttx.html
    Quote:
    FTTC involves BT Openreach installing a new street cabinet near to the existing one and linking the two. They run optical fibre from the exchange to the new cabinet then link individual lines from the old cabinet to the new one and back to get VDSL2 onto the copper connection to the premises. The PSTN phone connection continues to operate over the pre-existing cable from the old cabinet to the exchange.  It does not get put onto the fibre connection.
    In other words the linkage is Exchange >> Old >> DSLAM in New >> Old >> Premises. (Traffic in both directions of course!)
    Presumably the equipment in the exchange cannot stay as it is and is upgraded in the process?

  • Explorer InfoSpaces on HANA Views - column label changes cause issues?

    Key question is – do simply label changes in HANA view cause issues with Explorer InfoSpaces?  Furthermore, on source view changes, does the InfoSpace also need to be adjusted?
    What we have observed is this
    1. InfoSpaces have been created using the “SAP HANA appliance” connection highlighted below. The corresponding “Home” screen is shown below that, so there are around 14 or so InfoSpaces that should be available.
    2. Yesterday, there was a production deployment that contained some changes to the underlying views in the form of label changes (not column name changes).
    3. Now, in the “Manage” screen we cannot see these same 14 InfoSpaces available under the expected connection. Instead, they are all available under the “Source Unavailable” node with the default action of “Change Source” shown.
    Additionally, we are seeing some strange behavior where certain facets are actually containing the wrong data. For example, in a facet/column called “Source Type”, where the expected values are “NBP or PBP”, we are seeing Material numbers like “00001112453”. This leads me to believe that there is a mapping issue under the covers.
    Thanks,
    Justin

    Our BOE Explorer is Version: 14.1.1 Build: 1072   - I’m not sure how this corresponds with your 69.01 to 74 numbers (release note numbers?).
    But it sounds identical to your description.
    One of our observations: if we change the sorting on a facet pane using the upper right sort control the values are corrected for a while, at least until we change a measure and the set of facets get updated with the miss-mapped values again.    This only occurs on some models and we haven’t been able to determine what the underlying criteria might be that aggravates the problem. 
    Thanks for your input – it helps us determine a viable path forward.
    Cheers,
    Tony

  • I have a 2012 Macbook Pro and the GPU is causing issues with Yosemite. How can I resolve this issue?

    I have a 2012 Macbook Pro and the GPU is causing issues with Yosemite. There are a number of issues I have run across:
    If I have four tabs open on Safari then I start to get a flickering on the screen from the GPU refreshing
    When I leave the computer alone for more than 20 mins the screen saver should start -- what happens is that the screen goes to black. When I move the cursor I do not get the login screen. I have to reboot
    FireFox Web browser will not run
    I get issues with the computer running very slowly
    I have already turned off the transparency option in settings. Any ideas??
    Cheers
    Matt
    MacBook Pro, OS X Yosemite (10.10), GPU / Video Card with Yosemite

    Do you have more than one OS on the Mac?
    You may want to look at something like http://bjango.com/mac/istatmenus/. This has a Free Trial window, but it is a commercial application. If there are any heat/sensor issues, this may help.
    A SMC Reset or PRAM/NVRAM reset may also help.
    Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support
    Startup key combinations for Intel-based Macs - Apple Support

Maybe you are looking for

  • Multiple Libraries of folios in one app?

    Can you have multiple Libraries of folios in one app? For example, in one app you have two separate monthly magazines. Each of these magazines has its own library of monthly issues; each issue would be its own folio. Or would I need to make two separ

  • Unable to create query for new dataset

    Something weird has happened to our BI Publisher application in production. It was working fine, we could create reports and datasets and templates just fine. Now all of a sudden when we create a new report and a new dataset the Data Set screen is no

  • Error using the ModelData.fromBinary function in the framework

    I have a collada file with animation. this is how i load and proces it: public var loader:ColladaLoader; public function load(url:String):void {           loader = new ColladaLoader( url );           loader.addEventListener( Event.COMPLETE, onLoaded

  • How to make my mailboxes bigger like (in box)

    how to make my mailboxes largerlike (in Box)

  • Service Order Component User Status

    Hello All - Has anyone successfully tied a user status profile to the component item on the service order?  I've added the object type from BS12 and BS02, but I can't find a configuration assignment at the component level.  Any help is greatly apprec