Using XMLAGG and GROUP BY

Hello all,
Using XMLAGG and GROUP BY returns multiple groups, ex:
*<GROUP ID = 1>.....</GROUP>*
*<GROUP ID = 2>.....</GROUP>*
How can I aggregate the multiple results as follows;
<GROUPS>
*<GROUP ID = 1>.....</GROUP>*
*<GROUP ID = 2>.....</GROUP>*
</GROUPS>
Adding another XMLAGG to concatenate the result is not working.

ok It worked using this code:
SELECT
XMLELEMENT
EMP,
XMLAGG
XMLELEMENT
DEPT,
XMLATTRIBUTES(DEPTNO),
XMLAGG
XMLELEMENT
NAME,
ENAME
ORDER BY
ENAME
ORDER BY
DEPTNO
FROM
EMP
GROUP BY
DEPTNO;

Similar Messages

  • Using users and groups from LDAP in ADF application

    Hi there,
    I'm using WebLogic Server 10.3.5.0 and JDev 11.1.2.3.0.
    I configured my WL server to use the users and groups defined in my LDAP server (they display when I select the Users or Groups tab). So this works fine (I think).
    Now I want to use 1 group, let's call the group ApplicationGroup, and all it's users to give them access to my ADF Application.
    But I can't find proper/up-to-date info about how to do this.
    I tried 2 major things:
    1) I configured ADF Security to use Authentication and Authorization. Defined an Enterprise Role with the same name as in my WL server (so ApplicationGroup) then defined a
    Application Role with a custom name and added the Enterprise Role to it. That Application Role I gave access to all my TF's and Web Pages. When I deploy this, It just doesn't work (Migrate Users and Groups is not checked).
    2) Used the Authentication option in the ADF Security and the rest is the same as in 1). This works +-, I can login with all users so the role mapping isn't configured right I guess?
    Any help or documentation that could help me?

    Since we aren't using EM I had to find an other way. And I found it.
    In web.xml ADF Security (I suppose) automaticly adds 'valid-users'. In my weblogic.xml I added my enterprise role as a principal to 'valid-users' and this works for me.
    Thanks for the help.

  • Currency Dim and Groups Dim for LegalConsolidation and IcMatching App

    Hi experts,
    I have had a look on posts about using Currency and Groups Dim, and using only Groups,
    I have developed apps with only Group Dim. Do you recommend to use Curr and Groups in the future.?
    And which dims should I include in ICmatching App with curr and groups dim?
    Regards

    Hi,
    While what the guys before have said is correct, I have a different opinion on the matter from my experience (and from the SAP starter kits since 7.5).
    I use a separate Group and Currency dimension because you may want to look at an entity's numbers in GC but without running Consolidation. For example, an entity that is only partially owned will only have GC values for its owned %, but the accountant for this entity may need to answer questions on the GC values based on 100%. With separate dimensions you can see values in GC before and after Consolidation.
    For an IC Matching application, I would have both Group and Currency dimensions. I would definitely use Group dimension because you may want to see eliminated IC balances in different groups. You should also have the Currency dimension as although only GC Interco balances are essential for matching, the LC values for each position is important as a frame of reference for the local accountant.
    Hope this helps,
    Tom.

  • How to update a People and group field using a sandbox solution

    Hi,
    I am creating a sandbox solution for office 365 and creating a custom form using visual web part, which will allow users to enter data in a custom list.
    And that list also have a user field. I am able to get SharePoint user field on the form (using javascript) which is searching for the user and get a value (working fine).
    Issue: But I am not able to save the user value. Because to save user value I require web, UserID and login name, to construct SPFieldUserValue object or string in "111;#TestUser" format. Moreover that user should be present in
    SiteUserInfoList. 
    I tried web.EnsureUser() but did not work under sanbox solution.
    Can you please provide any pointer or workaround to the problem? I may be missing something here.
    Thanks,
    Himanshu

    Hi,
    According to your description, my understanding is that you want to update the people and group field in Sandbox solution.
    In the sandbox solution, you can still use the web.EnsureUser() function to get the user information, see the thread below:
    EnsureUser in sandboxed solution
    In additional, there is a demo with your similiar requirement for your reference:
    Using the People Picker Control in Sandbox Solutions / Office 365
    Thanks
    Best Regards,
    Jerry Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Using member sorting and grouping with two reports sharing rows

    Hi!
    I have a problem with one report and I need some help or advise here.
    I have two dimensions with dynamic expansion in rows (PRODUCT, MATERIAL), and I use the option Member Sorting and Grouping at Member selector to obtain the total amount of PRODUCT group by PARENTH1:
    PRODUCT               MATERIAL          AMOUNT
    TOTAL PROD_A-X                                   100
    PROD_A_A             MAT1                          22
    PROD_A_B             MAT1                          50
    PROD_A_A             MAT2                          28 
    TOTAL PROD_B-X                                   120
    PROD_B_A             MAT1                          30
    PROD_B_A             MAT2                          50
    PROD_B_B             MAT2                          40
    This works fine if I only have one report, but I need to create another one sharing the row and page axis with the Default Report, when I do that the option Member Sorting and Grouping doesn't work. I really need to have two reports with shared rows and also the summation by PARENTH1, how can I do that?
    Thank you very much

    Hi!
    I have a problem with one report and I need some help or advise here.
    I have two dimensions with dynamic expansion in rows (PRODUCT, MATERIAL), and I use the option Member Sorting and Grouping at Member selector to obtain the total amount of PRODUCT group by PARENTH1:
    PRODUCT               MATERIAL          AMOUNT
    TOTAL PROD_A-X                                   100
    PROD_A_A             MAT1                          22
    PROD_A_B             MAT1                          50
    PROD_A_A             MAT2                          28 
    TOTAL PROD_B-X                                   120
    PROD_B_A             MAT1                          30
    PROD_B_A             MAT2                          50
    PROD_B_B             MAT2                          40
    This works fine if I only have one report, but I need to create another one sharing the row and page axis with the Default Report, when I do that the option Member Sorting and Grouping doesn't work. I really need to have two reports with shared rows and also the summation by PARENTH1, how can I do that?
    Thank you very much

  • How can i send a email to multiple people on my ipad2 using the contact and group list downloaded from my iMac.  Thank you

    I am 63 yrs old and not to computer literate.  I know how to send an email to multiple people using my contact list and groups on my IMAC.  I tried using a group name downloaded to my Ipad2 from my IMac.  It does not work.  If I choose a single email address it works.  Any idea what I am doing wrong?
    Thank you for your paitence and help.
    Steve

    You are not doing anything wrong. The feature that you need is totally lacking in the built in Mail app on the iPad.
    There are a couple of third party mail apps that will let you do this ... MailShot and Group Email with Attachments. You can check them out in the App Store.

  • Using Office 2013 group policy template to define Trusted Locations and Template Locations doesn't work

    User Configuration/Policies/Administrative Templates
    - Using Office 2013 group policy template to define Trusted Locations and Template Locations doesn't work
    Microsoft Word 2013/Word Options/Security/Trust Center/Trusted Locations
    - Allow Trusted Locations on the network: 
    Enabled 
    - Trusted Location #1: 
    Enabled 
    Path:  //server/sharedfoldername   [Edit:  Path:
    \\server\sharedfoldername]
    Date: June 10, 2013
    Description: Trusted Location
    Allow sub folders: Enabled
    The policy appears to apply to the client correctly by adding the following registry key and values:
    HKEY_CURRENT_USER\Software\Policies\Microsoft\office\15.0\word\security\trusted locations\location1
    allowsubfolders: 1
    date: June 10, 2013
    Description: Trusted Location
    Path:  //server/sharedfoldername  [Edit: Path: 
    \\server\sharedfoldername]
    However, when you open Word Options/Trust Centre/Trust Centre Settings…/Trusted Locations
    There are no trusted locations listed under ‘Policy Locations’
    I have tried setting similar settings for setting the Shared Templates folder location and just like the trusted locations policy, the registry keys are created properly in HKEY_CURRENT_USER\Software\Policies however word doesn’t
    seem to recognize these either.
    This used to work flawlessly using the administrative templates for Word 2007 and 2010. Has anyone been able to get these policies to apply successfully, or know why office doesn’t recognize these settings from the Policies registry
    Key?

    This would have been an easy solution to the issue.  Unfortunately it isn't the problem.  This question was originally posted on another Microsoft site and
    was transferred here and when it was transferred the path's changed from the original post: 
    \\server\sharedfodlername to //server/sharedfoldername.  (I will edit the question to show up as it did in the original post) Not sure how that happened.  This
    is still an issue that I haven't been able to get working correctly.
    As it turns out the 'New from Template' interface Word 2013 has developed is very bulky with large thumbnails and is not very customizable nor practical for an office
    that has a large number of templates.   Because I am unsatisfied with the display and performance of the 'New' template chooser I sought after a solution to change the way word creates a document from a template in another thread: 
    http://answers.microsoft.com/en-us/office/forum/office_2013_release-word/how-can-you-change-the-display-of-templates-in/d49194b9-a6b4-4768-8502-7d7b50e9dd65 working through this issue with Jay we were able to develop
    some VB script with handles a very large number of templates in a list view and it works much faster than the built-in Word interface.  The above thread is how I've worked around trying to define a shared template location and I am quite happy with it.

  • How to send group SMSes by using KvanttiSMS and JSP

    Hello again , I would want some help in implementing an SMS module that sends out a SMS message to a selected group of individuals from a database of several different groups .
    Now I have done a JSP GUI to allow the user to send a single SMS to one person .
    And my initial JSP codings for the Group SMS GUI were scrutinized and was said to be not functional by my lecturer .
    This is one of the technique that I know currently to send out an SMS :
    Connect to the database and get all the names of the groups .
    Using a while(column.next()) statement , the results will be placed into a drop down list in the JSP.
    The user selects the group from the drop down list and types the message as normal .
    The user presses the submit button and goes to the next JSP page (the 2nd JSP page sends out the SMS).
    The 2nd JSP page gets the group parameter and the message . Both parameters are placed into a string object.
    Using the string "group" object , another connection to the database is called .
    The database is called once again to retrieve handphone numbers that belong to groups that matches the string "group" object.
    using another while(column.next()) statement . The Sms terminal is called , initialized and used to send the message accordingly to the number of results .
    So is there any comment about this ? Please tell me what I should do if my method is wrong.

    I'm sorry ,
    actually the SQL statement uses the string "group" object to retrieve handphone numbers that belong to a person who is inside the same group as the string "group" object .

  • HT5361 how do I create a group (that I can use over and over) in email

    I would like to create a group of email addresses that I can use over and over.  Can I do that in mail?

    You do that in Contacts. Mail will then fill in the group when you type the group name in Mail.
    Contacts/File/New Group, then select the cards you want and drag them into the group.

  • To use the "Users & Groups" preferences pane, System Preferences must quit and reopen.

    When I try to access some of the system preferences in Mavericks I get an error pane that states "To use the “Users & Groups” preferences pane, System Preferences must quit and reopen."
    Has anybody had this problem and if so what is the fix?

    Usually happens if you opened one that was 32-bit. Then, you need to revert back to 64-bit.

  • I can no longer use all of the "Computer Management" tools against a remote computer. "Local Users and Groups", "Event Viewer", "Performance Logs and Alerts" and "Device Manager"

    Hello All,
    I can no longer use all of the "Computer Management" tools against a remote
    computer. "Local Users and Groups", "Event Viewer", "Performance Logs and
    Alerts" and "Device Manager"
    kindly see the below snapshot for assistance
    REGARDS DANISH DANIE

    This link may help....
    http://windowsxp.mvps.org/admintools.htm
    Freeman

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • TS4461 I'm using iphone5 and don't have a group message tab

    I'm using iphone5 and don't have a group message tab why??

    You need to contact Apple. Click here, phone them, and ask for the Account Security team.
    (87350)

  • Custom Azure solutions using ADFS and SPO permissions group for ACL?

    This is a stretch, but say we have a custom ASP.NET website in Azure we hope/plan to secure with ADFS. Possible somehow to use SPO Permission groups to manage those permissions?
    Basically what we are trying to do is move some custom functionality outside of SharePoint to Azure, but we would like SPO Permission groups to determine who can run those external solutions.

    I"m not sure what will happen with users creating directories. Generally if you use mkdir -p to create a new directory it will inherit the permissions of the parent folder.
    I'm not sure how finder will handle this. Maybe you can use automator to look for new directories and modify the permissions on them.

  • Hi, I've used four different Groups when emailing for the past few years, and suddenly they have stopped working. I've tried creating new Groups but that doesn't work either. I haven't changed or done anything different and it is driving me mad......

    Hi, I've used four different Groups when emailing for the past few years, and suddenly they have stopped working. I've tried creating new Groups but that doesn't work either. I haven't changed or done anything different and it is driving me mad......can anyone help, please?!

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

Maybe you are looking for

  • Problem Regarding TABLE updation for Scheduling Agreement

    Dear Experts, We have noticed that whenever we are releasing any Delivery Schedule for a line item against a Scheduling Agreement the table field ABART(Scheduling Agreement Release Type) in table EKET is not getting updated,but the same field or colu

  • How do i upload pdf's into iphoto?, how do i upload pdf's into iphoto?

    I have photos in pdf not jpg and I am having problems importing into iphoto .... Please help!

  • Spry data set not displaying data in IE8

    Ok probably sounds familiar to some of you - but I cant seem to get it to display the data in IE8 after everyone's suggestions on the Spry forum.  When I load the page in FireFox it works, IE8 and Opera it doesn't.  I am running CS5 and it looks fine

  • Is there any BAPI calling only  ABAP command SET UPDATE TASK LOCAL

    Hi abapers we have a requirement to run SET UPDATE TASK LOCAL befor calling BAPI_ENTRYSHEET_CREATE command by JAVA through JCO. is there any BAPI that contains SET UPDATE TASK LOCAL command or simillar functionality. Thanks & Regards, Ramesh

  • How to Create Transport ?

    Hi Guys, I am trying to create transport request and have come across a doubt, while collecting the objects for transport. If i click on "Object type" in "Transport Connection" and choose Infocube as the Object to be collected and create a transport