Roll up and group by

Hello Gurus,
Please look into this
SQL> SELECT   provider_type, COUNT (DISTINCT p.p_external_prov_id) ct1
  2  FROM phcsclaimload.PROVIDERXWALK p
  3  GROUP BY provider_type;
PROVIDER_TYPE               CT1
ACUTE                      4384
ANCILLARY                 55793
PRACTITIONER             614643
SQL> ed
Wrote file afiedt.buf
  1  SELECT   provider_type, COUNT (DISTINCT p.p_external_prov_id) ct1
  2  FROM phcsclaimload.PROVIDERXWALK p
  3* GROUP BY rollup(provider_type)
SQL> /
PROVIDER_TYPE               CT1
ACUTE                      4384
ANCILLARY                 55793
PRACTITIONER             614643
                       674815I get wrong total with group by rollup, is this bug or it treats roll up differently.
please any one has answer to this?
If you total up all the rows in ct1 then it is 674820
any idea please
thank you in advance

thank you for your reply
here is the output
SQL> SELECT provider_type, COUNT(p_external_prov_id)
ct1
2  FROM
3  (select distinct provider_type, p_external_prov_id
FROM
4  phcsclaimload.PROVIDERXWALK p)
5  GROUP BY rollup(provider_type)
6  /
PROVIDER_TYPE               CT1
ACUTE                      4384
ANCILLARY                 55793
PRACTITIONER             614643
674820Does this resolve your problem?

Similar Messages

  • Difference between group by roll up and group by cube

    Please let me know with an example for the difference between group by roll up and group by cube.
    thanks,
    Vinodh

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/aggreg.htm#sthref1601

  • In my opinion, I think the rolling function of Muse need to add the group status function and group!

    In my opinion,
    I think the rolling function of Muse need to add the group status function and group!
    Because when the processing of many things, but the effect is the same,
    but to repeat many times, it is necessary to group similar function of PS.

    I learned how to install the 9.1.3 upgrade by renaming my app, and that works fine. Logic is now recognized in About My Mac as a 64 bit app, which is where I started. Thanks for your help.
    Now I have to figure out how to get my Novation to work through Automap in some way that I can finally get mixer functions. I'll repost the second part of this if I'm still having a headscratcher about it tomorrow.

  • Iphoto 6 library uses roll numbers and dates when viewing in photoshop

    Hi,
    Hoping someone can help me. I'm a fairly inexperienced Mac user but have been using iphoto and photoshop fairly extensively but not for anything too complicated.
    Before I upgraded to iLife 06 I could browse from within photoshop by going into iphoto library and then the year followed by the month and date - just what I needed.
    This no longer works - infact it brings up photos in some very odd months and days if I browse iphoto library.
    However,from reading this forum I have gathered that I need to look in the 'originals' folder to browse photos in photo shop now. Unfortunately though it gives the year and then only roll numbers.
    Is there a way I can get it to work like it was doing? Also I would like to back up on a fairly regular basis my iphoto library to an external HD - whats the best way of doing this and can I get it so the organisation is years>months>days etc.
    Thanks in advance for anyone's help.
    powerbook 15" G4 Mac OS X (10.4)

    kirmankatz:
    The doc "IMG_0677.JPG" has an embedded colour profile that does not match the current RGB working space. The embedded profile will be used in stead of the working space.
    Clicked OK and the image opened.
    Closed PS
    Went back to iPhoto and choose that sameimage - double clicked. PS launched but the image still didn't.
    What you should have done instead of just closing it is do a Save As being sure to check the box in PS, Embed sRGB color profile, that appears in the Save window. When you do that keep the location and file name exactly the same. That will force PS to embed that profile. As is was, you just opened it and then closed which left the file the same.
    Or you can download the Automator application "Embed sRGB Profile" from Toad's Cellar, unzip it, and then drop those problem Original file onto it. It will automatically embed the profile into any image file dropped on it. You can do batches that way.
    As far as the locked file, download and run BatChmod on the iPhoto Library folder with the settings shown here, putting your administartive name in the owner and group sections. You can either type in the path to the folder or just drag the folder into that field. This will set the permissions correctly on all enclosed files AND unlock any locked file inside.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Outline and Group columns like in Excel?

    I am trying to do an outline and group of columns like in Excel. I basically, want to hide away (roll up) certain columns in a spreadsheet. I know I can hide them, but I would prefer to group/outline them like I can in Excel so anyone can ungroup them. If I just hide them, they look like they are gone. Can Numbers '09 do this for columns?
    Thanks,
    jeff

    Numbers does not have that capability. It would be difficult to replicate it for columns because there are no filters for columns, just rows. It might be possible to do something for rows by using the filtering capabilities, an extra (hidden) column on which to filter, and checkboxes that you can check/uncheck to show/hide groups of rows.

  • Server 10.5.7 upgrade deleted all user and group Info -- Receiving error -1

    After upgrading our Dual 2.0 G5 server that was running 10.5.6 to 10.5.7 all groups and user information lost access. In addition when starting the workgroup manager error -14008 appears. Also when we look into the console log the following shows up
    ------------com.apple.launchd[1] (edu.mit.kadmind) Throttling respawn: Will start in 10 seconds
    over and over
    Any help would be greatly appreciated.

    I looked into A&I more, maybe it's not as nuclear as I thought. I presumed it meant I needed to reinstall all non-apple Apps, which means digging up disks and codes, none of which I have here. I'm away from home for another 4 weeks, which means doing that is difficult.
    Being away is also why my back-up is a little out of date, I didn't bring the time machine drive for that MBP with me. I had it shipped to me as soon as I had problems, but the back-up I'd have to roll back to is now 1-2 weeks old and might still have the funky user:group problems since my timezone problems began before the 10.5.7 update.
    I think DiskWarrior may of finally repaired the user:group issues. Not 100% sure but it's looking better. I just noticed that the primary user is admin but User is 502 and Group is 502. Whereas my secondary user account (also Admin) on that MBP User is 501 and Group is 20. My recollection is 20 is staff and both users groups should be 20.
    I'll look into A&I more, probably do it when I get home.
    Thanks.
    Message was edited by: jb510

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Partition Name in Select and Group-By

    Is there a function that returns the partition name a row is stored in? I'd like to use it in a SELECT statement, if it exists.
    The goal is to get row counts per partition to determine skew on a hash-based partition (otherwise, I'd just select and group-by the partition key). I want to do something like this:
    SELECT PARTITION_NAME, COUNT(*) as PER_PART_COUNT
      FROM SOMETABLE
    GROUP BY PARTITION_NAME;Obviously, I would replace the string "*PARTITION_NAME*" with whatever function returns that value.
    NOTE: Before the forum sharks jump all over me, I did search the documentation and forums, but I came up empty handed.

    Hi,
    This is hokey - but you can use the undocumented function "tbl$or$idx$part$num" like so:
    SELECT   atp.partition_name
           , COUNT (*) AS count_rows
        FROM all_tab_partitions atp
           , (SELECT tbl$or$idx$part$num ("SCOTT"."TAB1"
                                        , 0
                                        , 1
                                        , 0
                                        , partition_col1 -- your 1st partition key column
                                        , partition_col2 -- your 2nd partition key column
                                         ) AS part_num
                   , 'TAB1' AS table_name
                   , 'SCOTT' AS owner
                FROM scott.tab1) pt
       WHERE atp.table_name = pt.table_name
         AND atp.table_owner = pt.owner
         AND atp.partition_position = pt.part_num
    GROUP BY atp.partition_name;Note - this probably won't perform well at all... but it could be an option...
    Message was edited by:
    PDaddy
    ... On 2nd thought - don't do it - it seems it is pretty unstable - brought my session to a halt a couple of times... Forget I mentioned it :)
    ... On 3rd thought - if you add ROWNUM - it works fine - seems you need to materialize the result set in the inner query - like so:
    CREATE TABLE part_tab (part_key int
                         , a int
    partition by range (part_key)
    (partition p1 values less than (100)
    ,partition p2 values less than (200)
    ,partition p3 values less than (maxvalue)
    insert into part_tab
    select rownum
         , rownum
    FROM all_objects
    where rownum <= 1000; SELECT atp.partition_name
         , COUNT(*) AS count_rows
    FROM all_tab_partitions atp
       , (SELECT TBL$OR$IDX$PART$NUM("PART_TAB", 0, 1, 0, part_key) AS part_num
               , 'PART_TAB' AS table_name
               , user AS owner
               , ROWNUM AS rn -- Materialize the result set by adding ROWNUM...
          FROM part_tab) pt
    WHERE atp.table_name = pt.table_name
      AND atp.table_owner = pt.owner
      AND atp.partition_position = pt.part_num
    GROUP BY atp.partition_name;

  • Can't access photos in camera roll - camera and  photo app crashes

    Have iphone 4 with iOS 5.0. Took pictures but now I can't access any photo in the Camera Roll. When I now try to take a picture, Camera app crashes. If I try to access the Camera Roll via Photo App, it too crashes. Can't see the photos from iTunes either. Shows it as unknown data. Is there anyway to rebuild the photo library or remove a corrupted photo since I think that is the problem. Any help would be appreciated.

    Thanks to Steve Kehlet who posted the solution that helped me and saved my day, https://discussions.apple.com/message/16405821#16405821
    Follow the link:
    http://www.iphoneincanada.ca/how-to/how-to-fix-iphone-camera-roll-crash-and-phot os-turned-to-other-in-itunes/
    You will need to download PhoneView, but the free 7 day demo does the job - and my camera and photo app are up and running again!

  • 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]

  • Hi I do not want iTunes to open up automatically when I turn on my macbook pro.  I tried going to System Preferences Users and Groups Login Items and then I took iTunes off the list but it still opens up automatically when I turn on my laptop.

    Hi I do not want iTunes to open up automatically when I turn on my macbook pro.  I tried going to System Preferences>Users and Groups>Login Items and then I took iTunes off the list but it still opens up automatically when I turn on my laptop. What should I do?

    Hi r,
    Make sure you close iTunes before shutdown.  And you're quite welcome.

  • I am trying to stop programs from opening automatically when I turn my computer on.  I tried system preferences users and groups login items...then I deleted them from the list but it did nothing.

    I am trying to stop programs from opening automatically when I turn my computer on.  I tried system preferences>users and groups>login items...then I deleted them itunes and emial from the list but it did nothing.  They continue to open up every time I turn on my Macbook Pro.

    Hi r,
    It sounds like you're running Lion?
    Have you tried running Verify and/or Repair Disk?
    Have you tried running Repair Permissions?
    Do you have at least 15% free space available on your HD?

  • How to change default /Users and /Groups to different Volume?

    Users are created in /Volumes/<boot>/Users and groups in /Volumes/<boot>/Groups.
    We need these to be created on a different volume, eg., /Volumes/External/Users, and /Volumes/External/Groups.
    Setup Assistant correctly put user Backups into */Volumes/External/Shared Items/Backups* and also correctly put web services on /Volumes/External/ServiceData -- we want to do the same for Groups and Users.
    Groups are the most critical, as the group needs bulk storage. Users we could leave as is if it can't be done.
    How can this be configured? We've read File Server Admin, Open Directory Admin, and Advanced Server admin from http://www.apple.com/server/macosx/resources/documentation.html without finding an answer.
    Thanks in advance.

    1. Create new folders on the external volume to hold users and groups, but to prevent confusion name them something other than "Users" and "Groups". /Volumes/External/NetUsers and /Volumes/External/NetGroups would be reasonable choices.
    2. Share both of these folders (in Server Admin -> server name in sidebar -> File Sharing -> Volumes & Browse modes -> select each folder -> click Share near the top right).
    3. Enable both folders for automounting on clients (Server Admin -> server name in sidebar -> File Sharing -> Share Points-> select each folder -> Share Point tab under that -> Enable Automount option) with the default options (Directory: /LDAPv3/127.0.0.1, Protocol: AFP, Use for: User home folders and group folders). Be sure to click Save (not just OK in the dialog).
    4. To migrate users, run Workgroup Manager, and change the home location for the users you want to move (select Accounts in the toolbar -> /LDAPv3/127.0.0.1 from the hidden pop-up menu under that -> User icon tab at the left -> select the user(s) you want to change -> Home tab on the right -> select the NetUsers option from the "Where" list). Then, for each user, run this command on the server: "sudo cp -Rp /Users/username /Volumes/External/NetUsers".
    5. Similarly, move Group folders in WGM (Accounts -> /LDAP... -> Groups icon on left -> select groups to move -> Group Folder tab on right -> NetGroups in the list). Then, for each group, run "sudo cp -Rp /Groups/groupname /Volumes/External/NetGroups".
    6. Test to make sure all is working before deleting the old user and group folders from /Users and /Groups (do NOT delete /Users and /Groups themselves, just the individual folders from under them).

  • Generate report to show all users and groups in Shared Services in EPM 11x

    Hi,
    Is there any way to generate a report (like a migration report or job status report) which can be generated through workspace/shared services 11.1.1.3 so that my admin can look at all the users and groups created. Something that I can view and probably print out? Any suggestions?
    ~Adeeba

    Yes, I knew this one. This basically shows me the users and groups assigned specific provision access. Is there any way to view a report that shows which users and groups have access to dimensions of an individual planning application?
    ~Adeeba

  • 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

Maybe you are looking for

  • Code generation in Sun Java Studio enterprise edition 7.0

    I went thru the product tour of Java studio enterpise edition 7.0 http://developers.sun.com/prodtech/javatools/jsenterprise/reference/presentations/launch_jse7_overview.html It says that it will generate code from UML documentation. After that can we

  • Multiple web galeries out of lightroom 2.0

    Is there a way for lightroom to output multiple galleries for the web? I have seen some 3rd party vendors like LRB offering this, but I was curious as to other choices as well

  • Is there a firefox 3.6.29??

    Is 3.6.28 absolutely the latest version of FF 3.6.x?? I have tried FF 12 and others. Don't like them. I just want the very latest 3.6.x.

  • Can an unactivated iphone be used as an ipod touch??

    HI, I am about to upgrade from the 1st gen to the 3GS. Once I activate the 3GS, can I still use the apps and ipod features on the old (soon to be deactivated) iphone? thanks, -MO-

  • What is the best way to update the delivery time?

    Hi All, One of the tasks I have in my job is to updste purchase orders with information found in the orderconfirmation we receive. In the order screen, ME22N, you can change the date in the item, where you have all positions listed. But you can also