Error when using clause ORDER BY in XMLAgg. Can you help me!

When I using ORDER BY IN XMLAGG ( not declare in the block "begin end" ) Then it run best.
BUT I using ORDER BY in XMLAGG ( Declare in the block "Begin end;" ) Then Warning Errror : "wrong number or types of argument in call XMLAGG".
Sourcode:
Declare p_oResult CLOB;
Begin
select DISTINCT XMLAgg(XMLElement("SUMSaleByOrg",XMLAttributes(A2.FK_sBranch as "FK_sBranch",A2.sBranchName as "sBranchName"
,nvl(sum(A2.cPeriodN12),0) as "cPeriodN12"
,pkgcommonfunction.fCO11_PercentValue(nvl(sum(A2.cPeriodN12),0), 1) as "dDensityN12"
                         ,nvl(sum(A2.cPeriodN1),0) as "cPeriodN1"
,pkgcommonfunction.fCO11_PerCentValue(nvl(sum(A2.cPeriodN1),0),1) as "dDensityN1"
                         ,nvl(sum(A2.cPeriodN),0) as "cPeriodN"
,pkgcommonfunction.fCO11_PerCentValue(nvl(sum(A2.cPeriodN),0),1) as "dDensityN"
,nvl(A2.yBranchOrder,0) as "yBranchOrder")
Order by A2.yBranchOrder
).getClobVal()
INTO p_oResult
from      TempSumSale A2, TempUserLevel B2
     Where     A2.FK_sBranch=B2.PK_sBranch2
     Group by A2.yBranchOrder,A2.FK_sBranch,A2.sBranchName;
end;

This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes for Windows forum.
Regards.

Similar Messages

  • TS3694 hello i am getting a 2009 error when i try to restore my ipad can you help

    hello can anyone help?

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

  • When using the "submit by email" feature can you add 2 emails?

    When using the "submit by email" feature can you add 2 emails?

    Yes. Seperate them with semicolon (;) just like you would in a normal email client.
    Kyle

  • HT3939 Hi there I've got an iPhone 5 starting to get electric shocks of fone when I leave it on charge! Can you help me in this matter! Fone is constantly over heating the shock I got off phone really hurt! So please can u get intouch on

    Hi there I've got an iPhone 5 starting to get electric shocks of fone when I leave it on charge! Can you help me in this matter! Fone is constantly over heating the shock I got off phone really hurt! So please can u get intouch on
    <Edited By Host>

    This is a user forum and is not Apple.  I would definitely recommend that you stop using your iPhone and take it to be checked.

  • I don't know how to put in alphabetical order my mailboxes. Can you help me please?

    I don't know how to put in alphabetical order my mailboxes. Can you help me please?

    Try to force it into recovery mode to restore it, as explained here: http://support.apple.com/kb/ht1808.

  • I don't know how to setup FF to open in last session of windows wont let me save current sessions like it used to ask me fairly disappointing can you help m? Phil

    Question
    i don't know how to setup FF to open in last session of windows wont let me save current sessions like it used to ask me fairly disappointing can you help m? Phil

    ''want FF to open in last session of windows -- won't ask me if I want to save current sessions like it before''
    '''You can still have the old messages''', to make sure you get your tabs restored immediately, but with or without the messages and whichever way you respond to the message you can still get back your previous session through the History menu. (see item #31 "tabslost")
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#tabslost
    You can make '''Firefox 6.0''' look like Firefox 3.6.*, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 6.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • I encountered a problem when using Flash Player V9.0.115, can somebody help me?

    Hello all, can somebody help me?
    I have encountered a problem when using Flash Player
    V9.0.115. Your help would be greatly appreciated.
    The problem described as follows:
    1. The flash file with sound works well before uploaded to
    website. The audio lost when uploaded to the website(There is no
    problem with the flash file size). I have uploaded the flash file
    to website for you to test. Please go to
    http://www.sameshow.com/democreator/create
    a new site.swf and kindly check with it.
    2. When we open the flash movie in IE with Flash player
    V9.0.47 and previous versions (Flash9d.ocx), the flash movie with
    sound works well.
    3. When we upgrade the flash player to the latest version
    V9.0.115 (Flash9e.ocx), the video works well, but the sound just
    can play several seconds and then stop.
    4. On Flash Player ocx V9.0.115. If we publish the flash
    movie on web with 24fps, the sound just can work several seconds
    and then stop, the problem is the same if we use the
    TShockWaveFlash control to play the flash movie.
    5. On Flash Player ocx V9.0.115. If we publish the flash
    movie with 12fps, the sound works well but the quality is really
    very poor. It seems that the sound plays shorter with more frames
    per second. But the flash file works well with the Flash Player
    V9.0.47 and previous versions (Flash9d.ocx).
    Can somebody help me to figure it out? Thanks in advance!
    Regards,
    Sabrina
    [email protected]

    Hello Darren, I really appreciate your response. My mail is
    [email protected] I have uploaded the flash file to our
    ftp,
    http://www.sameshow.com/democreator/create
    a new site.swf. And also I compressed the original file to a
    zip file and uploaded to our ftp at
    http://download.sameshow.com/aff/create.zip,
    please kindly check! When we playing this flash file on FlashPlayer
    V9.0.47 and previous, the audio works well. But the audio just can
    play several seconds and then stop when I playing it on FlashPlayer
    V9.0.115. The garbled audio makes us very upset. Your help would be
    great appreciated!
    Sabrina Fu

  • When trying to use MobileMe I am getting an error message: AppleSyncPref.exe - Entry Point not found  Can you help?

    When trying to use MobileMe I am getting an error messgae: AppleSyncPref.exe - Entry Point not found  Can anyone assist?

    MobileMe no longer exists...that system was discontinued and merged into iCloud.
    Your old MobileMe email addresses shoule still be valid, or convert into some form of user@ me .com or icloud . com.

  • I have problems typing certain characters when using gmail or online forums. Can someone help?

    When I try to use an apostrophe, when using online forums or my email (all in safari), a white bar appears at the bottom of the screen displaying the punctuation mark but it will not allow me to use it. Any idea how I can fix this?

    Have you tried resetting your iPad?
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    No data will be lost.

  • I keep losing volume output from one of my tracks (Strings) in GarageBand. The volume has gone completely from the whole track when I send the song to iTunes-can you help?

    I keep losing volume output from one of the Tracks from my Song Project. The Strings volume, at first, was there but, when I sent the Song to my iTunes Library the strings volume was absent. Can any help? I've experience this before on another project, where for some unknown reason I've lost the Orchestral Choir volume. Sometimes, if the volume on a track disappears, I close everything down & then restart-this temporarily sorts it out but losing a track in the final mix is a different problem...please help!
    Many thanks!!

    soulkiss wrote:
    I need the vocals to be the same volume throughout.
    a good tool for that would be one of the compressors (a web search on "audio mixing compressor" will yield tons of information on using them)
    soulkiss wrote:
    It always exports at the audio level no matter what.
    http://www.bulletsandbones.com/GB/GBFAQ.html#tooloud
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • I have corrupted fonts when i use firefox in my pc. Can you help me please ?

    this hapens only when i use firefox.

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Since updating to the latest version of FF I don't see the yellow padlock when I am on an encrypted page - can you help?

    The yellow padlock icon used to be in the far right bottom corner and it was in the closed position when you are on an encrypted page like when you are shopping. I no longer see it there and I want to know where you have hidden it, or is it no longer needed. In that case how do you know if you are secure?

    The padlock only shows that there is a secure connection and doesn't guarantee that you are connected to the right server. So you might still be connected to the wrong server if you make a typo in the URL and someone has claimed that mistyped URL. The functionality of the padlock has been replaced by the Site Identity Button on the left end of the location (address) bar.
    This has actually existed since Firefox 3.0 so it is not new.
    http://www.mozilla.com/en-US/firefox/security/identity/
    https://support.mozilla.com/en-US/kb/Site+Identity+Button
    If you still prefer to have a padlock icon also then there is this extension. https://addons.mozilla.org/en-US/firefox/addon/padlock-icon/

  • My iphone got stuck when I tried to restore it. Can you help me?

    My phone seems to be stuck in a loop. The screen continually goes from the apple logo, black, a white flash, and round and round.
    It started when I was trying to restore it. 

    Open iTunes on computer. Connect iphone to computer with USB Cable. Hold both home and power buttons until iTunes recognizes iPhone in Recovery Mode. Usually takes about 20 seconds of holding both buttons. Restore Firmware.

  • I downloaded the 32 bit version when I needed the 64 bit version can you help me out?

    hey guys need some help!
    IIve downloaded the 32 bit version when i needed to download the 64 bit version

    Hi Adrians,
    I would suggest you to re-install the product, if you have a 64-bit operating system it will download both 64-bit software and 32-bit software.
    Let us know for further query.
    Thanks,
    Ratandeep Arora

  • I can't get ahome page that has 6 or 8 tablets of most common used websites. Tried Option "use current pages" without success. Can you help?s

    Since having Firefox I have used as a Home page a page with "tablets" showing the most recent pae of my most popular websites. By clicking on this I returned immediately to that site. Suddenly it's disappeared and I can't get it back. I tried "Options Use current pages" but that doesn't work. Help!

    You can set the home page to about:newtab to have the page with the 5x3 tiles showing.
    You can check the home page setting:
    *Tools > Options > General > Startup: Home page
    Firefox supports multiple home pages separated by '|' (pipe) symbols.
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    You can check the value of the <b>browser.newtab.url</b> pref that sets the new tab page page and make sure it is set to about:newtab.
    See this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

Maybe you are looking for

  • I keep getting an error when trying to publish my site

    No matter how many of these errors I fix (edit the file and re-upload it onto the site), Muse comes up with a new error every time I try and publish. How can I resolve this issue, so I can publish my updated site. It should not be a problem with the

  • Help with resetting id

    Help with resetting id

  • Selling powermac G4 with display

    Hello, We are going to sell (2) Powermac G4 with OSX 768mb DDR SDRAM, 60HD with (2) 20" Displays. How much roughly should we be asking for? Both the computer and display are in good condition and will be wiped clean. Thanks

  • I have an iPhone 5 and after changing email addresses am having syncing issues with Outlook.

    My calendar syncs from my computer to my iPhone but not from my iPhone to my computer.  It used to sync both directions.  I'm guessing the same is true of contacts.  I've gone through all the tabs in iTunes.  The calendars are checked properly but I

  • Copy R/3 Sales Structure

    Hi, We had downloaded the R/3 sales structure by TCode CRMC_R3_ORG_GENERATE but due to inconsistency in the data we deleted all the sales area. When we went back to the transaction to copy R/3 sales structure there is no data to be generated, so now