How to use Percent_Rank to knock out the bottom and top 10% of query?

Hi,
I'm trying to use Percent_Rank to knock off the bottom and top 10% of a query result, and then take an average of what's left.
The query is of the form:
SELECT 'Average Resolution Time Days' Service_Time_Type,
ROUND(NVL(AVG(NVL(hds.hds_working_duration(jr.date_lodged, jas.job_close_date),0)),0),2) Time_Days
FROM hds.hds_job_request jr, hds.hds_job_assignment jas
WHERE jr.job_id = jas.job_id
and jas.job_close_date is not null
AND jas.job_close_date >= '01-JAN-2006'
AND jas.job_close_date < '01-NOV-2006'
I would like to add a: WHERE PERCENT_RANK ?????? BETWEEN 0.10 and 0.90, but I can't work out how to use it, can someone help?
Thanks
Adam
Message was edited by:
Adam Sawyer

I worked it out:
This is the query I ended up with:
SELECT 'Average Resolution Time Days' Service_Time_Type,
ROUND(AVG(duration),2) Time_Days
FROM
SELECT hds.hds_working_duration(jr.date_lodged, jas.job_close_date) duration,
round(percent_rank() over (order by hds.hds_working_duration(jr.date_lodged, jas.job_close_date)),2) pr
FROM hds.hds_job_request jr, hds.hds_job_assignment jas
WHERE jr.job_id = jas.job_id
AND jas.job_close_date IS NOT NULL
AND jas.job_close_date >= '01-JAN-2006'
AND jas.job_close_date < '01-NOV-2006'
WHERE pr BETWEEN 0.1 AND 0.9
ORDER BY 1
Thanks for all your help
Cheers
Adam

Similar Messages

  • SSHR reskin AKA 'How to Use Adobe Flash to Transform the Look and Feel...

    There was a presentation at the OHUG 2011 Conference titled 'How to Use Adobe Flash to Transform the Look and Feel of Oracle HR Self Service'. It presented a method of 're-skinning' SSHR to present a different UI to the user.
    Looking for anyone out there that has attempted to apply this to their Oracle HRSS pages. I know this company has developed (is developing?) a product based on this approach. I want to see if anyone has done it on their own and would be willing to share some details.
    Follow-up question. Has anyone availed themselves of the bespoke UI Development based on this approach from Applaud Solutions (as mentioned on their website), and care to comment on your experience?

    Any update on this please? Even we are looking for some pointers in this area.

  • My iPad has a split typing keyboard near the top third of the screen.  How do I get it back at the bottom and full?

    My iPad's keyboard has jumped up to the top this of the screen and is split.  How do I get it back to it's normal position at the bottom and one full keyboard?

    Just to clarify this a little bit....
    Pull the two ends of the keyboard together - into the middle of the screen. You can also tap and hold down on the little keyboard icon in the lower right corner of the keyboard and select - Dock and Merge.
    If the keyboard is up on the middle of the screen, but not split, and you want to move it back to the bottom - tap and hold down on the little keyboard and icon and select - Dock
    If you don't want this feature - You can turn the split keyboard off in Settings>General>Keyboard>Split Keyboard>Off.

  • How to use audit command to track the old and new values by any DML?

    Hi,
    I want to track all the changes done by any DML. I also want to capture who did it, when it was done and where it was done.
    Or is it possible to capture the user realted details in CDC feature of Oracle 10g?
    Which will be the best possible solution?

    You can Capture DML statements fired on a database by the following way, too.
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.22
    satyaki>
    satyaki>AUDIT ALL BY SCOTT BY ACCESS;
    Audit succeeded.
    Elapsed: 00:00:01.80
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • I want to remove "full screen" and set it back to where I can see the tab bar at the bottom and top of my screen. I want Firefox to go to Google - not Yahoo

    I think I am clear about what I want as stated in my question above. Please help

    Right-click the empty space next to the Firefox button and choose 'Customize', then click 'Restore Default Set'

  • How to knock out the shape of a placed object

    This is a montage of approximately 250 small images in ID CS5. Each photo is a separate object. I would like to knock out the shape of the dog in silhouette to reveal the background layer, which is underneath the small images and can't be seen in this picture. Then I would like to add a drop shadow to give the background layer some depth.
    I know how to do this with either text or a shape created in InDesign, but I'm having trouble getting it to work for a placed object. I've tried using the silhouette as an EPS, AI and PSD but can't figure it out.

    Draw a large frame to cover the page. Place the dog over that and use the
    pathfinder panel to cut the dog out of the frame. Now group the little
    images and cut them to the clipboard. Paste into the frame with the cutout.

  • How do you edit out the date and time stamp from a photo

    How do you edit out the date and time stamp from a photo

    You can blur it out with retouch
    The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
    Regards
    Léonie

  • How do we view a list of the temporary and free sites we are using?

    Adobe Web Host - Free Sites /
    How do we view a list of the temporary and free sites we are using?
    When logged into Creative Cloud we used to be able to see the temporary and hoe many of the 5 free sites we were using. 
    Can’t find a list on my Creative Cloud account or when linking to "Manage" from within Muse /
    No mention of the free sites in the FAQs. Has there been a policy change ? Are free sites still included in the Subscription ?
    // from - Adobe Muse Help | Adobe Muse / Common Questions //
    When I publish in Adobe Muse CC, do I have to pay for hosting with Adobe?
    Adobe Muse CC allows you to publish your temporary website on the Adobe hosting platform at no charge for a 30-day trial period. This gives you the opportunity to send a live URL to your client for review. All sites in trial mode with Adobe will include the domain “businesscatalyst.com” in it. If you decide to take the site live by paying for the monthly hosting, you can transfer your own domain and remove the businesscatalyst.com subdomain. Or you can export the HTML and host the final site with a hosting provider of your choice.

    Yeah, not sure why they took it out of the cloud interface.
    But if you go to http://www.businesscatalyst.com/partnerportal and login with your cloud ID you will have access to all your cloud sites and many other features.

  • I have CS5 and a d-600. I would like to use camera raw but not working. I downloaded CR 7.3 and still not working. Do I need to upgrade to CS6 ..or just throw it all out the window and get rid of my d-600 ?

    I have CS5 and a d-600. I would like to use camera raw but not working. I downloaded CR 7.3 and still not working. Do I need to upgrade to CS6 ..or just throw it all out the window and get rid of my d-600 ?

    it allows you to use your cr files, Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Camera Raw: How to use Adobe DNG Converter - YouTube

  • How to Use an Image to Customize the Static Button Widget

    Can I just get someone to help me figure out how to use an image to customize the static button widget, please?
    I have tried using several different types of images, but none of them seem to actually change the appearance of the button.
    Thanks!
    Laura
    Captivate 5.5

    I tried to use the tools within the widget itself - it offers you the opportunity to use an image (see screenshot below).
    I also opened it in Flash and tried to replace the images for one of the button styles there w/ my own, but in re-publishing the SWF from there I broke the widget.  When I attempted to use the edited widget, there were no customization controls available after I inserted it (see screenshot two below).

  • How to use batch files to send the load from ODC to UCM?

    Hello all.
    We're trying to do this along this week and, until now, we couldn't figure out how to use batch files containing metada on ODC and commit the output files to UCM.
    So these are our specs:
    VM 1
    ODC - 10gR3
    OS - Windows XP 32 bits SP3
    DB - Oracle DB 11.2
    VM 2
    No ODC
    UCM 11.1.1.6
    OS - Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
    We've opened a ticket with Oracle Support to know how we should do this. The number is SR 3-6108348211.
    Let me try to explain what we want to do:
    1 - we have a batch file with all metadata of many files from UCM
    2 - we want to use this file in ODC, so the application will convert the images and commit them to UCM
    3 - we should see all these files, their metadata, thumbnails and related content in UCM
    4 - this is a batch file example we want to send to ODC:
    @Properties LocalData
    IdcService=CHECKIN_UNIVERSAL
    dRevLabel = 1
    primaryFile=/tra/Relatorio_UHPF-03-04-2008-M-RL-EA.pdf
    dDocName=TRA_33
    dDocTitle=UHPF-03-04-2008-M-RL-EA
    dSecurityGroup=MAM_TRA
    dDocType=Document
    dDocAuthor=luis.neotropical
    dInDate=14/05/08
    xC_CLASSIFICACAO=EA - Educação Ambiental
    xC_DATA=01/04/08
    xC_DATAVALIDADE=30/04/08
    xC_LOCALIZACAOFISICA=N/D
    xC_USUARIO_DEP=LUIS FERNANDO DA CAMARA
    xC_TIPO=RL - Relatório
    xC_USINA=UHPF - USINA HIDRELÉTRICA PASSO FUNDO
    xC_FICHA=MAM - Relatorios Ambientais
    xC_IDDOCMAN=TRADocID=157
    xC_IDANEXODOCMAN=TRAFileID=33
    xC_DESTINOINICIAL=Tractebel
    xC_ORIGEM=Neotropical
    xC_FORMATODOCUMENTO=Digital
    xC_GENERODOCUMENTO=
    xC_DOCPRINCIPAL=Sim
    @end
    <<EOD>>
    5 - So, when we use this batch file on ODC, the file (or image) will be converted, all metadata attached and then sent to UCM.
    But we don't know how to do the link between ODC and UCM. The Oracle Support says it is necessary to do some customization. In the books I could not find any info about how to do, just generic information or how to use ODC.
    Is there a way (without customization) to do that? Can anyone give us a step-by-step guide?
    Thanks for all help and guidance.
    Fernando

    What is the one-sentence requirement or issue you're trying to solve?
    If you only want content to be converted to pdf, then you should already have that with your items checked into UCM (if you have IBR enabled).
    if you really want to feed content into ODC using a batchfile, my first thought would be to create a transformation utility/app that will convert your batchfiles to the expected ODC import server folder job format. then you'll have to move or map the content to match.
    Again, without knowing the exact issue/business requirement you're trying to work through, I'd say a redesign of your ingestion process may be in order.
    If you feed content directly into ODC through any supported ODC method (watch folder, email, scanner, fax, etc), then you'll be able to use everything ootb as you'll be able to auto-commit directly into UCM or add an indexing step and manual commit to UCM.
    ODC is basically a front end for indexing and extra ingestion options to your content repo.
    IPM is basically the same, but it includes some extra process-related details (process metadata, process integrations/bpel/bpm, other system integrations/ebs/crm, etc). I don't feel that IPM would help with the transformation-specific question you've put out there.
    -ryan

  • How to use NODIM func with out it's values being rounded

    I created a new calculated key figure in Query Designer 3.x, and used the function NODIM() - Value with out dimensions. When I use this function, the values are rounding off to the nearest value.
    For example, I have a value 0.000075 US$, when I use NODIM function the value is displayed as 0.000080. Value is getting rounded to nearest value.
    I tried using absolute value it did not work.
    Can any one tell me how to use NODIM function with out it's value being rounded to nearest value.
    Thanks,

    Hi,
    According to your description, you might want that "Notice" field has a default value when form is created and users can be able to change the value of that
    field.
    As a workaround, you can add an action rule in “Name” field via InfoPath to fill the default value in “Notice” field only when “Name” field is not blank and “Notice”
    field is blank.
    Settings of the rule are as below, you can modify it based on your need:
    Here is a link about how to add an action rule in InfoPath form, you can use it as a reference:
    https://support.office.microsoft.com/en-us/article/Add-rules-for-performing-other-actions-5322d726-b787-4e5f-8d37-ba6db68b451d?CorrelationId=8a64c12f-aa60-4d90-b1f9-a44fcc4e74b5&ui=en-US&rs=en-US&ad=US
    Best regards
    Patrick Liang
    TechNet Community Support

  • Can I carry out the persistence and ORM tasks using EclipseLink?

    Can I carry out the persistence and ORM tasks using EclipseLink (without TopLink or Hibernate) ?
    Is the EclipseLink a free tool and no license fee?
    How about TopLink Essentials?
    Edited by: junez on 18-Nov-2009 05:51

    junez wrote:
    Can I carry out the persistence and ORM tasks using EclipseLink (without TopLink or Hibernate) ?
    Is the EclipseLink a free tool and no license fee?And yes, EclipseLink is an open source project so there are no license fees. However, Oracle does redistribute EclipseLink as part of the Oracle TopLink product and therefore customers are able to access support for EclipseLink through Oracle support.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • To find out the min and max memory been used by each parameter under SGA_MA

    Hi,
    Can any please tell me how to find out the min and max memory been used by each parameter under SGA_MAX and SGA_TARGET ? below is the db CRMS65T. If any such script is there please provide me
    SQL> select name from v$database;
    NAME
    CRMS65T
    SQL> show parameter sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 1000M
    sga_target                           big integer 1000MThanks in advance

    Can any please tell me how to find out the min and max memory been used by each parameter under SGA_MAX and SGA_TARGET ? below is the db CRMS65T. If any such script is there please provide meI guess your question is, each memory components of SGA? if so
    SQL> select * from v$sgainfo;
    NAME                                  BYTES RES
    Fixed SGA Size                      2088504 No
    Redo Buffers                       18882560 No
    Buffer Cache Size                 616562688 Yes
    Shared Pool Size                  301989888 Yes
    Large Pool Size                     4194304 Yes
    Java Pool Size                      4194304 Yes
    Streams Pool Size                         0 Yes
    Granule Size                        4194304 No
    Maximum SGA Size                  947912704 No
    Startup overhead in Shared Pool   125829120 No
    Free SGA Memory Available                 0Also check
    SQL> select COMPONENT,CURRENT_SIZE,MIN_SIZE,MAX_SIZE,USER_SPECIFIED_SIZE from v$sga_dynamic_components;
    shared pool                                                         301989888  301989888          0           209715200
    large pool                                                            4194304    4194304          0             4194304
    java pool                                                             4194304    4194304          0             4194304
    streams pool                                                                0          0          0                   0
    DEFAULT buffer cache                                                616562688  616562688          0           603979776
    KEEP buffer cache                                                           0          0          0                   0
    RECYCLE buffer cache                                                        0          0          0                   0
    DEFAULT 2K buffer cache                                                     0          0          0                   0
    DEFAULT 4K buffer cache                                                     0          0          0                   0
    DEFAULT 8K buffer cache                                                     0          0          0                   0
    DEFAULT 16K buffer cache                                                    0          0          0                   0
    DEFAULT 32K buffer cache                                                    0          0          0                   0
    ASM Buffer Cache                                                            0          0          0           603979776
    13 rows selected.
    SQL>Edited by: CKPT on Sep 19, 2011 8:55 AM

  • How to use one report column into the another report in obiee

    How to use one report column into the another report in obiee

    i dont want to use column as a filter for another report it should be report column for another report
    Thanks,
    Vivek

Maybe you are looking for

  • PI E-filing GB SWCV Issue

    PI E-filing GB SWCV Issue I am currently experiencing an issue with E-filing in PI. We are getting various error messages from the message mappings... e.g.Target message Message Type: HR_GB_EFI_DPSrequestToken_Response does not exist in software comp

  • HT201412 why my ipad briefly shows apple icon when turned on, then displays a picture of a plug, plugging in an itunes circle icon

    lMy ipad would not respond after leaving it for a brief minute.....screen was black, so I plugged it into power source thinking battery needed charging, when I did this, a picture of a plug, plugging into an itunes icon (circle) and nothing else happ

  • Lock relevant fields.

    Hi all What is the significance of lock relevant fields in materialmaster. The actual problem is: I have made a field as required entry in material master. I have done the settings correctly. But i'm not able to see the particular field in the materi

  • Discoverer Desktop and Administrator: which is the next step?

    Hello everybody, i would like to ask you some help about understanding the following issue: I noticed that Discoverer Desktop and administrator are being treated like obsolete. Do they have a direct successor? I mean, is there any new product that ha

  • Fall back plan

    I am planing to upgrade from Oracle 9i to Oracle 10g (Linux) Manual Upgrade - If fail what woule be rollback plan DBUA - If fail DBUAL would automatically take care Manual upgrade: how much time it would take upgrade DBUA: how much time it would take