Opti im

Hi everyone,
My table CALLS has the following contents:
Cust id CountryCalled Duration
123 SG 10
123 SG 20
123 THA 50
123 IND 80
456 US 30
I need to find the CountryCalled with the maximum sunmed duration:
Cust id CountryCalled
123 IND
456 US
Does someone have an efficient query to achieve this? I am using Oracle8i. Thanks!

or if you do not want to us a GROUP BY clause:
SQL> select * from calls;
   CUST_ID COU   DURATION
       123 SG          70
       123 SG          30
       123 THA         50
       123 IND         80
       456 US          30
SQL> select c2.cust_id, c2.countrycalled
  2    from (select c1.cust_id, c1.countrycalled, c1.duration,
  3                 count(*) over (partition by c1.cust_id order by c1.cust_id) ct,
  4                 row_number() over (partition by c1.cust_id order by c1.cust_id, c1.duration) rt
  5            from (select distinct cust_id, countrycalled,
  6                         sum(duration) over (partition by cust_id,
  7                                               countrycalled order by cust_id) duration
  8                    from calls) c1) c2
  9   where c2.ct = c2.rt
10  order by c2.rt;
   CUST_ID COU
       456 US
       123 SG
SQL>

Similar Messages

  • Task object: Linking Opty to Account: on the NEW/create from LookUp

    Hi,
    The User creates a Task from the Account Detail page.
    The Task page has the Opty field (LookUp).
    On the LookUp, User clicks the NEW button to create a new Opty record.
    The Opty page has the Account field (LookUp) -here is it possible to get the original Account Name into the Account field on the Opty page?
    The standard facility is that the Account Name does not get picked up here.
    I understand that the above process/flow is not in the standard model...
    (the current solution is to ask users to create the task from the Opty Detail page, which reflects the actual intent as well; but a config solution to the above process would be helpful).

    Hi,
    Siebel pics up the relevent informaiton like account name or opportunity name automatically if that any record you create from with in the any record. And if you consider the normal sales practice, one create an opp first and then a follow up task for that opp.
    Nisman

  • Neo4 Ultra Plat. / Opty 175 / Corecenter 2.0.2.1 errors on boot :(

     Heya., Been running my Neo4 Ultra Plat. since they first came out. This is a PCB v1.0. Thought i'd pop a Opty 175 in it and test drive it. It's running the latest 1D bios and all the most recent drivers. It's really odd Corecenter installs fine and runs ok but soon as I reboot if fails at life during system boot. Maybe 1 outta 10 times it won't error. Once it errors it just refuses to run period. So for fun I wrote a .exe to exec CoreCenter 60secs later on start to let everything else finish loading but with still the same problems. Is this latest CoreCenter compatible with DualCore procs. ?

    It is running the newest AMD DC drivers. The CoreCenter is this one:
     MSI Core Center      ReleaseDate:     2006-11-22
      Version    2.0.2.1      Support OS    Win- 98SE/ME/2000/XP/XP 64bit      File size    4.185MB
    • MSI Hardware monitor & overclocking & fan speed control tool
    Right off the MSI website.
    http://www.msi.com.tw/program/support/software/swr/spt_swr_detail.php?UID=637&kind=1

  • Attachment is uploaded the filed in OPTY has to be updated automatically

    Hi everyone,
    I have requirement whenever the attachment has been added there is the filed in OPTY that has to automatically updated to "YES"
    Can u please help out
    Regards
    Laksh

    the billing plan needs to be regenerated - in standard this would be done manually - not sure if that BADI will help
    create an ABAP to run nightly to check for changes to milestones billing % and then update those contracts - regenerate billing plan dates - delete old lines and then click on create dates button for the contract line item

  • Request to Update opty whn a project status in oracle status  is changed

    Hi,
    A Project Request is created for an opty of oracle sales in oracle projects using PRC: Manage Project Requests.
    A Project can be created for that Project Request.
    Is there any way to update the opty if this project is updated?
    In simple words is there any cycle from Oracle Projects to Oracle Sales ?
    Thanks in Advance
    Regards,
    Srivatsa

    Peter
    Thank you for the quick response, I'll be sure to request a real fix to this as well.
    I have tried saving within HTML View, but it still requests to apply the update to the Master Page when I do so. A good idea though for sure.
    Although, I should mention that it is important for me to save my changes that I have done in HTML View, apply the update (which of course there is none) and then close the topic. Closing the topic is key because I have noticed that if I go back to Design View directly and make some changes, it will tell me I have changed the Master Page anytime I try to save that topic, no matter what view I am in. Closing the topic and re-opening it though seems to get it out of this loop, and once again only HTML view changes cause the issue.

  • Is Live Cam Optia Pro compatible with Mac OS X 10.5.6?

    I recently bought a brand new live cam optia pro and it arrived today i plugged it in and tried opening photo booth, all i got was a black screen? And when i open image capture it doesn't detect the webcam? what do i do?

    heh... reading too fast I overlooked the spec being touted. I don't think DVDSP 3 will work at all, sorry.
    But yes, FCP v5 and DVDSP 4.0.2 were running on this very laptop just ten days ago. I updated to 10.5.6 and it all came to a halt, forcing me to apply the FCS 2 discs that have been sitting neatly in a box on the shelf above me for ages now.
    I still have the old configuration in Time Machine - and have been building DVD projects using the older software as recently as last week.
    Unless I am missing some other detail, of course

  • Oracle-Optier Application Management

    Hi,
    Is it possible running Oracle Application Management Pack simultaneously with Optier application management pack for my business performance monitoring?
    I've saw Optier pages but still got no clue - It should work? someone had experience with Oracle-Optier managing?

    If your question is whether Oracle Application Management Pack is certified in the ecosystem where Optier application management is deployed, then the answer is NO.
    Thanks,

  • Cannot uninstall Optia Pro driver

    Suddenly, my optia pro stopped working. So I tried a reinstall:
    Runnning Vista SP2
    I can uninstall everything except the driver. In Programs/Features nothing happens - the icon is blank btw. Uninstalling via device manager makes no difference.
    If I try a reinstall, I get the following:
    The existing or installed driver is the same or newer than the source driver. The installed driver version is 1.03.03.00. Do you still want to proceed with the driver setup?
    Click OK
    An error encountered during installation. Do you still want to proceed to install?
    Click Yes
    Setup complete - restart for changes to take effect
    Vista device driver driver window shows one optia pro failed and a second Ready to use
    And the story remains the same - zip. I do however get the microphone working.
    If anyone can help here, please let me know. I've tried all sorts so far and with no success. Somehow, there is a driver hanging around somewhere.

    My parents have been having problems with their new Live Cam Optia pro HD where by everytime they used it the avatar of the cat was launched even if it was turned off. So I set about uninstalling everything.. only to find like the guys above that the drivers fail to uninstall either through the control panel, via a creative upgrade or by downloading new drivers and letting them do the uninstall.
    Device manager reports the camera there but no drivers installed. The software when running says no camera connected. But when you try to do a reinstall or uninstall the system reports it cant do it.
    Help!!! We now have an expensive webcam that doesnt work!
    Nick

  • Opty-Prod Reports: Indexed columns of Opty-Prod

    Hi,
    I am hoping to understand the reasons why the indexed columns of the Opty-Product object are not available for Opty-Product Report. I need to explain this to our users and I have no clue. Our users are reasonably aware of reports/analytics and the absence of indexed columns in reports is confusing.
    Any thoughts?

    PR, the missing indexed fields in the Opty-Prod real-time reports is something I reported to Oracle a few months ago, their response was "thankyou for you request we'll consider this at a future date". I don't use the Indexed fields for Opty-Product I create new ones, you can't use them in lists and reporting can be pretty quick anyway so I don't see a benfit to using them. # periods and the date field is missing too ;-D
    cheers
    Alex

  • Optia af, vista ? any problems??

    Hey guys,
    I purchased the top of the line logitech camera, forget the model their flagship one. Anyway it works great with the software provided but MSN is AWFUL.. anyone in the end, the latest drivers and support the camera looks worse than a $9.99 target camera in any of the IM clients. (THIS IS ON VISTA)
    Has anyone hooked up the optia AF to msn, yahoo etc? are you satisfied? is it worth it's I went with the logi because it had "vista" drivers, but it bombed, so back to creative..
    comments?
    thanks

    i just realized how bad i tortured that message. what i tried to say,, has anyone run the optia AF on vista yet? have you run it in msn?
    satisified?
    any comments on optia af in vista?

  • Optia AF Windows 2

    Hallo together,
    is there a way to run the optia af under windows 2000 ?
    thanks for help
    regards j?rgen

    We ordered a lot of optia cameras for a group in our office and a couple of the machines are using windows 2000 as well. I have not been able to get the camera to work.
    This would be very very helpful... is there a generic creative webcam driver for 2k perhaps?

  • Re-boot cycle with new opty 175?

    Iv already posted in this thread https://forum-en.msi.com/index.php?topic=101539.40 but its been a couple of weeks since anyone has made a post so thought I would repost here, sorry if this is wrong way to do it.
    I installed my new Opty 175, It recognised OK in my system. ACPI MultiProcessor PC with both cores reported under CPU in Device manager, Task Manager showing 2 graphs for both cores, all looks good so far.
    Installed the MS Hotfix (never done the PerfEnablePackageIdle registry edit, is this maybe a problem?) then the AMD Optimiser, everything still looking good.
    Quote
    install Dual Core HotFix V4 --> https://forum-en.msi.com/index.php?topic=103843.0
    reboot.
    install Dual Core Optimizer --> http://www.amd.com/us-en/assets/content_type/utilities/Setup.exe
    reboot, re-test. (check it from device manager:
    This is the order I installed the fixes, as per BOSSMANS instructions.
    I cant see the MS hotfix KB896256 in ADD/REMOVE programs??
    AMD fix is there though.
    My Problem is the same as mremulator's described in this thread https://forum-en.msi.com/index.php?topic=101922.0
    Quote
    No No No, the dual core optimiser and MS Hotfix are NOT compatible.   
    I made the mistake of installing the two and Windows XP would reboot at desktop. AMD have confirmed this.
    I have the desktop reboot problem, though not all the time. Seems to be when I've been in the BIOS (no changes made) or recently I ran Memtest for 16 passes (no errors) and rebooted to the reboot cycle again.
    I was thinking of just doing a re-install but after reading the above thread it looks like I will have the same problem after installing both dual core fixes?
    I have a Ghost Image of my upgrade before the Dual Core fixes where installed and was thinking of going back to this to try again to fix the reboot cycle problem, will this be a good Idea?
    Also, any ideas as to whay the MS Hotfix doesnt show in ADD/REMOVE programs? (show updates is ticked)
    Can someone please give me a clear route to Installing the fixes (if they are applicable), and if the registry edit for the MS Hotfix is needed???
    Any help is much appreciated 
    g2k.

    Right, I've been at this for nearly 4 hours now.
    I've done all below and this is MY findings:
    1. Restored my Ghost image (which was made prior to installing any fixes, just the CPU installed)
    2. Installed the "AMD Athlon™ 64 X2 Dual Core Processor Driver for Windows XP and Windows Server 2003 Version (x86 and x64 exe) 1.3.2.16" software.
    3. Installed the MS Hotfix KB896256, then done testing with the reg files supplied by BOSSKILLER, plus the boot.ini edit (with both  "/NoExecute=OptIn"
     and "/EXECUTE", absolutely no difference with either).
    Done a few reboots, messing around in BIOS, just looking - no changes. All fine when booting up. Happy with that I chose the enable reg entry and saved this as my default.
    4. Installed AMD Optimiser, reboot straight to windows = OK
    reboot to BIOS and mess around looking at the settings (no changes), reboot and when windows loads - instant reboot and back into my reboot cycle!
    continued to mess around rebooting and into BIOS and finaly had to F8 to load the "Last good config that worked" on the list.
    5. Uninstalled AMD Optimiser, repeated all the rebooting and BIOS messing around, I CANT get the system to get the reboot cycle error at all now
    My conclusion is - dont install the AMD Optimiser! Also I agree with mremulator in this thread: https://forum-en.msi.com/index.php?topic=101922.0
    Im using only the MS hotfix with the enabled reg key and its fine like that, installing the AMD one made absolutely no difference for me apart from the reboot problem.
    I understand people dont have this problem running both fixes, just thought I would post my findings incase anyone else ran into similar problem as me.
    @ BOSSKILLER
    can you tell me what the difference is between the BOOT.INI edits " "/NoExecute=OptIn" and /EXECUTE" please??
    Also, many thnx for all your help
    nice one
    g2k.

  • Fx-55 to opty 170 2.0ghz

    hi just a quick question,would like to upgrade from my fx-55 to a dual core CPU maybe a opty any advice would be much appreciated
    system spec's as follows
    mobo k8n diamond plus
    CPU    fx-55
    mem 2gig matched pair corsair xms pro 3200
    vid card xfx 7600gt nvidia
    power supply  hiper typeR  730W

    If you're into overclocking try to get older opterons , newer socket 939 opterons are rebranded X2's wich don't oc so well
    U should be able to find a CCBBE 0610 DPMW off ebay , i've got one of those @ 2.95 Ghz 
    If you don't oc then well, just find the cheapest one you can find 

  • New Customer/Accounts Vs Existing Customer Opty's

    I want to create 2 reports, one to compare existing customer opty's win/loss rates and the other to compare new customers win/loss rates for opty's.
    The problem I'm finding is how to distinguish with a filter on new vs existing cusomter...What I would like is the ability for new customers is if its the only opty and existing customers would have more than one opty.
    Having a date comparison on Account created date to opty created date would assume they are created within a specific time frame.
    The other option would require the opty type to be fore new business, any other thoughts?

    Hi !
    With reports you are able to get the number of opportunities by account. Your first report will have the filter # of oppy = 1 and the second one the filter # of oppy > 1.
    If you can not have this walue (# of oppy) in your report, build two simple reports giving account Id where # of oppy = 1 and # of oppy > 1. Next you'll just have to specify in your detailed reports that account Id is present in the result of another request.
    Hope this will help, feel free to ask more !
    Max

  • Opty 165 vs 170 See New Post

    I'm thinking of getting a new CPU soon...Either the X2 4400+ or the Opteron 170, or the 165.
    im looking for mainly a gaming CPU. I know that the Optys are suppose to OC much better, so that is a plus. I know that either is going to be a big boost in performance over my present 3200+. Im just wonder everyones opinons on these three guys. The Opty is alittle cheaper. but will the X2 be worth the extra dough?
    Has you know, i have a MSI K8N Diamond Plus, and this board is limited, to 300FSB, so have this in point!! :D
    Cheers 

    Quote
    The X2 3800+ has only 1mb Cache L2, and the Opty 165 has 2mb, its like a PC has 512MB and another PC has 1GB, its almost the same diference!
    Significant difference in games, basically none in other apps.  A person must ask themselves "is the money I pay for the extra cache equal to the performance benefit for my system usage", or does it matter "I just want the best of the best".
    http://www.anandtech.com/cpuchipsets/showdoc.aspx?i=2762&p=6
    But the Opty's do clock a bit better...
    Quote
    Know i'm thinking that probaly would be better to switch to AM2!!
    As far as I know...
    AMD will be retiring 2x1MB L2 cache for AM2, in the future there will only be 2x512Kb L2 cache.  So if you are that excited about L2 cache it will be harder or impossible to get for AM2 unless you act now.
    http://techreport.com/onearticle.x/10175
    Also there is no Opteron for AM2 it will be Opteron in Socket F.
    Quote
    Konw people are telling me that there are 2 versions of Opteron 165 one with 1mb cache L2 and other with 2mb cache L2, i'm so tired of thinking about this many issues!!
    In a 165 for 939, each core has 1MB of cache for a total of 2MB on the die, probably where the confusion was made, there are not 2 different types of 165's from a cache perspective.
    Quote
    What do you consider better, buy a knew CPU now and  in the future, 2008 change to AMD K8L, or migrate know to AM2!!
    If I had a good 939 board, and good DDR1 memory, and I was just going to upgrade the CPU, I wouldn't switch to AM2 because it costs too much for a small performance gain.  If had some old Pentium 3 system, I would go AM2 AFTER July(Conroe Launch), it might cost slightly more but you would be buying equipment with a longer useful life(i.e. DDR2, AM2 CPU is suppose to work in AM3, etc, etc).  You fall in the middle of both scenarios so I can't really make that call...it a tough one. I guess if I had to I'd say stay 939 for now, and wait for K8L or Conroe to come down it price next year...

  • How do I save a clipping path in Photoshop so that Quark gives me the option to change the path opti

    I created a clipping path on a photo, clipping out a person's head so that I can have the person's head show up over the masthead on a cover.
    But when I save the photo in Photoshop and then import it into Quark, the option where it says I can change the clipping options in Quark is greyed out.
    This is what it says to possibly fix it on the Quark help page:
    "You may want to choose "None" from the Clipping path pop-up menu when you save the image from Adobe Photoshop, so you can specify which path to use as the clipping path when you import the image into QuarkXPress. Or, you may want to choose a path from the Clipping path pop-up menu, so you can be sure only that path will be used to clip the image."
    I don't understand what that refers to....I can't find anything like that in the Photoshop options.
    My goal is to have the person's head over the text, with the rest of the photo still retained in the background. As it is now, I just get an import of the clipping path alone, with Quark substituting the background part of the photo with a white box.
    Thanks!

    <a href="http://www.pixentral.com/show.php?picture=1RxvmnVOUk55QdqS9tN4g7h79Bgef0" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/1RxvmnVOUk55QdqS9tN4g7h79Bgef0_thumb.gif" border="0" />
    <br />
    <br />
    <a href="http://www.pixentral.com/show.php?picture=17oVBzeqvr2YeN0BkvJUS0rFTjMqHh" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/17oVBzeqvr2YeN0BkvJUS0rFTjMqHh_thumb.gif" border="0" />

Maybe you are looking for

  • Reflecting a synchronized field

    If I have a class which defines a synchronized field, and I use reflection to get the corresponding Field object, do the set and get methods of that Field object acquire the appropriate locks (on the object or class, depending on whether it is an ins

  • Nothing Will Finish Downloading

    My flash player stopped working out of the blue so I uninstalled it and attempted to download it for reinstall. (by not working I mean youtube videos freeze after only a few seconds) Now when I download any file from adobe's website (using Chrome, Fi

  • Can we have more than one trusted system in Oracle Identity Manager?

    Can we have more than one trusted system in Oracle Identity Manager?

  • Third Party Software Issues for Tungsten E2

    I got a Palm Tungsten E2 for Christmas, and so far I'm loving it. However, I've had some problems downloading software for it. I'd like to be able to put some games on it, and yet nothing I've tried so far have worked. I couldn't even get the Solitai

  • Can is use Starling for mobile game?

    Hi all, I am familiar with Adobe air and actionscript 3.0 programming. Now i want to move to android/iOs game development. I found that most of them using the Starling framework. I am new to starling framework. What i am worried about starling framew