Need a function equivalent to PERCENTILE_CONT for Oracle 8i

I have been using PERCENTILE_CONT in Oracle 9i to find median and quantiles. Now, I need to run similar queries on a different database that is only Oracle 8i. Is there an equivalent function that I can use to give Quantiles?

I've read the description of percentile_cont several times now, and I still don't understand it (never was good at statistics anyway, still don't understand why a flush beats a straight). there was no function in 8i, but is it possible to do it by combining other functions? not understanding what it does, I don't know.
otherwise, all the analytics I've used can be solved by joining or outer-joining a table to itself - that's how we used to do them. for example, for SUM() OVER you join the table to itself, using = on all the selected columns expect the column you want to sum, that column becomes a <=. then group by all the columns in one isntance of the table, and sum the column from the other instance of it.
some things might need to join the table 3 times, or use outer-joins. doing that give you the ability to know, on any given row, the total number of rows, it's RANK or ROW_NUMBER, etc.
hope this helps. if you understand how percentile_cont works, you could probably construct a query yourself

Similar Messages

  • SQL Server Equivalent of this for Oracle.

    I was just wondering if anyone know of any links similar to this(http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/12c/r1/poster/OUTPUT_poster/poster.html#).
    The fifth tab has an extremely informative picture of the architecture. Anything similar to that for SQL would be really handy.
    Thanks in advance.

    In addition to other posts, you can also check the following blogs about SQL Server architecture.
    SQL SERVER – Beginning of SQL Server Architecture – Terminology – Guest Post
    http://blog.sqlauthority.com/2012/08/30/sql-server-beginning-of-sql-server-architecture-terminology-guest-post/
    SQL Server architecture: Behind the scenes
    http://1hw.in/sql-server-architecture-behind-the-scenes/
    Thanks,
    Lydia Zhang

  • Using to_date functions in Com Channel for Oracle DB

    I have been trying to mask data while pulling from an Oracle DB.   I run the following SQL in sqlplus and it works correctly
    <b>select to_char(cse_wid, '9999.99') from iprdl</b>
    then when I use XI,  
    I get a successful message in the adapter engine so I go in to look at the payload and receive this message.
    <b> A name contained an invalid character. Error processing resource 'file:///C:/Documents and Settings/CSEIDIT/Local Settings/...
      <TO_CHAR(CSE_WID,9999.99)>   10.70</TO_CHAR(CSE_WID,9999.99)>
    ^2 to_char(cse_wgt,'9999.99' ),
    </b>  then I also get a mapping error in the integration Engine.   I have searched this forums and have found nothing that seems to fit this problem.
    Thank you
    Carl Seidita
    Message was edited by:
            Carl Seidita
    Message was edited by:
            Carl Seidita
    Message was edited by:
            Carl Seidita

    Not passing an XML to Oracle.    Using a JDBC com. channel parmeter  SQL Query option to pull records.  have other fields the SQL but it does not like the TO_CHAR option .  this is the full select
    <b>SELECT PROD_ID, CREATE_DTIM, TO_CHAR ( CSE_WID, '9999.99' ),     TO_CHAR (CSE_WGT ,'9999.99' ),  CSE_UNIT,  TO_CHAR (CSE_LEN, '9999.99' ), TO_CHAR (CSE_HGT, '9999.99' ), cse_cub, inner_pack_wid, inner_pack_wgt, inner_pack_unit, inner_pack_len,  inner_pack_hgt, inner_pack_cub FROM iprdl
    WHERE (iprdl.extr_flag <> 'Y' OR      extr_flag IS NULL)</b>
    The adapter Engine give me a successful Message but when I go to view the payload, I get that error and it does not map to the inegration engine

  • Need Opinions on Connect-time failover for Oracle Parallel Server

    Has anyone had any experience using the (failover=on) setting in TNSNAMES.ora file?
    Specifically has anyone had any issues using this feature from a JDBC application?
    Horror stories? Good news? Anything?
    Thanx....

    Should I need to put this on Metalink?

  • Using function Decode inside Decode for Oracle Reports

    Has anyone used a decode inside of a decode to get a single record from mulitple records?
    Thanks

    I've used decode inside of decode to create a view. Then in the report, I used a group by query to combine the records. Let me know if you want to my sql.

  • 10g Express Edition equivalent for Oracle 8.1.7?

    Hi all,
    Exist any Oracle 10g Express Edition equivalent (free edition) for Oracle 8.1.7?
    Many thanks in advance.

    user5880436 wrote:
    Hi all,
    Exist any Oracle 10g Express Edition equivalent (free edition) for Oracle 8.1.7?
    Many thanks in advance.Express edition was started from 10G onwards. So there is no equivalent in 8 i.
    Regards
    Rajesh

  • Export import - using TOAD FOR ORACLE  and ORACLE DATABASE 10G EXPRESS or s

    Hi all,
    Could you please kindly help me?
    I am using TOAD FOR ORACLE to export a table to flat file A. The tool just supports to distinguish fields by "spaces".
    And the web page of ORACLE DATABASE 10G EXPRESS to import the data from flat file A to another database. To load data to a table from a text file, the web page bases on "comma" to distinguish fields.
    So could you have any suggestion for me? I need to export data via TOAD FOR ORACLE. And then import it to another database by the home page of ORACLE DATABASE 10G EXPRESS or sqlplus.
    Thank you so much for your help!

    Dont use TOAD for exporting your data. Use PL/SQL. Below is the code given in Asktom.com that does what you want.
    create or replace function  dump_csv( p_query     in varchar2,
                                          p_separator in varchar2 default ',',
                                          p_dir       in varchar2 ,
                                          p_filename  in varchar2 )
    return number
    is
        l_output        utl_file.file_type;
        l_theCursor     integer default dbms_sql.open_cursor;
        l_columnValue   varchar2(2000);
        l_status        integer;
        l_colCnt        number default 0;
        l_separator     varchar2(10) default '';
        l_cnt           number default 0;
    begin
        l_output := utl_file.fopen( p_dir, p_filename, 'w' );
        dbms_sql.parse(  l_theCursor,  p_query, dbms_sql.native );
        for i in 1 .. 255 loop
            begin
                dbms_sql.define_column( l_theCursor, i, l_columnValue, 2000 );
                l_colCnt := i;
            exception
                when others then
                    if ( sqlcode = -1007 ) then exit;
                    else
                        raise;
                    end if;
            end;
        end loop;
        dbms_sql.define_column( l_theCursor, 1, l_columnValue, 2000 );
        l_status := dbms_sql.execute(l_theCursor);
        loop
            exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
            l_separator := '';
            for i in 1 .. l_colCnt loop
                dbms_sql.column_value( l_theCursor, i, l_columnValue );
                utl_file.put( l_output, l_separator || l_columnValue );
                l_separator := p_separator;
            end loop;
            utl_file.new_line( l_output );
            l_cnt := l_cnt+1;
        end loop;
        dbms_sql.close_cursor(l_theCursor);
        utl_file.fclose( l_output );
        return l_cnt;
    end dump_csv;
    /Here is the link to this thread in asktom.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:95212348059

  • Current Patch Set for Oracle Database Release 11.2

    Hi
    I am upgrading oracle 10G to 11GR2 in AIX 5.3 Environment with SAP ECC6 , I have just just installled Oracle 11.2.0.1.0 according to the "Database Upgrade Guide -Upgrade to Oracle Database 11g Release 2 (11.2): UNIX". After database software installation , in upgrade manual in section 3.4.4 it says, you need to install current patch set for oracle database 11g R2 and referencing a SAP note 1431799.
    I have just read note 1431799 which says Current Patch Set for Oracle Database Release 11.2 is not generally available for SAP customers until December 2010, also I donu2019t find the note 1522330 as mentioned in 1431799.
    Please let me know how I can get current patch set to apply with Oracle 11.2.0.1.0 (Is it in SAP service market place?)
    I also want to upgrade my installation to oracle 11.2.0.2, please let me know where I get the patch set to upgrade from 11.2.0.1.0 to 11.2.0.2,
    or
    I have to live with 11.2.0.1.0 and apply SAP Bundle Patch ( SBP)

    Abu Al MAmun,
    I understand from your posts that you recently upgraded to 11.2.0.2.
    I am having the same difficulty, of finding the current patch set for 11.2. Could you please let me know how you worked around it?
    Thanks,
    Siri
    Hello Everyone,
    I did read the post on to how you have to install the current patch set for 11.2.
    But honestly, it pretty much flew over my head.
    I am trying to upgrade our SAP AIX 64 bit test system from Oracle 10.2.0.4 to 11.2.0.2.
    And so far I have downloaded all the required sw for the upgrade, except for the current patch set 11.2.
    This is what I have right now:
    1) Oracle 11.2 AIX 64 bit upgrade sw - 51038805_part 1 to 51038805_part 7 and 51039800.
    2) Database Patches -->Oracle 11.2.0.2 -->
    All they have here is
    a. Database RDMBS - SAP_112020_201012_AIX.zip and b. SAP_112020_201101_AIX.zip
    b. OPatch - OPatch_11201_Generic_v3.zip and mopatch-2_1_6.zip
    c. Database Vault - DV - >Generic - p9656644_112020_Generic.zip
    If I am not wrong, the Database RDBMS files are nothing but the SAP Bundle Patches that have to be installed after installing the currrent patch set 11.2.0.2 using MOPatch.
    But I did not find the currrent patch set 11.2.0.2.
    Could someone please explain the process to me in detail? This being my first time , I am finding it a bit hard to catch up with some of the stuff.
    Thank You!
    Siri

  • Patch 8290549 for oracle 9.2.0.8

    Hi,
    I need to install April patch 8290549 for oracle 9.2.0.8 but have some doubts if it
    is cumulative patch and if it is include Jan patch.
    I will appreciate if someone could help with the two questions below.
    Is April patch 8290549 for oracle 9.2.0.8 is cumulative patch ?
    Is it include January patch 7592365 ?
    Thank You,
    Ronen

    All CPUs released by Oracle are cumulative i.e. they include all the fixes from the first CPU released for a particular release (f.ex. 9.2.0.8) till the current one.
    The Readme for the patch itself has following lines
    <quote>
    Critical patch update (CPU) patches are cumulative, which means fixes from previous Oracle security alerts and critical patch updates are included. It is not required to have previous security patches applied before applying the CPUApr2009 patches. However, you must be on the stated patch set level for a given product home before applying the CPUApr2009 patches for that release.
    <quote>
    Edited by: Satish Kandi on May 27, 2009 8:54 PM
    Added Readme details.

  • Pl   Provide Rc. of SUN BIDW for Oracle database 10g .. datasize 10TB

    Hi,
    We need a Sun BIDW Reference Configurations for Oracle database 10g with raw datasize of more than 10TB.
    Kindly help me providing any reference guide relevant to this.
    Regards,
    Debasis

    Hi Debasis,
    Try posting this in the following forum:
    General Database Discussions
    Thanks, Mark

  • Need a function name for Sql and Oracle

    Retrieving value of next line by doing opteration in previous row.

    Can you rephrase the question? Or better yet, provide an example? I'm not sure I understand what you are asking.
    My best guess is that you are looking for the analytic functions LEAD or LAG in Oracle, assuming you are on a relatively recent Oracle version. If by "SQL and Oracle" in your subject you mean "SQL Server and Oracle" (SQL is a language that all relational databases implement, SQL Server is Microsoft's relational database), I have no idea how (or if) you can do something similar with a built-in function in SQL Server. You would want to post in a SQL Server group to see how they handle that sort of thing.
    Justin

  • Need help for learning how to develop interfaces for Oracle R12 EBS

    Hi all,
    I need to learn how to create interfaces in PL/SQL for Oracle R12 EBS Financials. I cannot find a good starting point for the documentation and examples to help me get started in this area. Would appreciate tips
    for this area.

    Hi,
    What kind of interfaces you are planning to develop?
    Oracle already provides list of APIs that can be used (in R12, it is responsibility).
    Oracle Integration Repository Documentation Resources Release 12 [ID 396116.1]
    Oracle Integration Repository
    http://irep.oracle.com/index.html
    If those APIs do not satisfy your requirements, you can refer to "Oracle Applications Developer" guide as well as SQL-PL/SQL guides.
    Applications Releases 11i and 12
    http://www.oracle.com/technetwork/documentation/applications-167706.html
    Database Documentation -- SQL-PL/SQL
    http://www.oracle.com/technetwork/database/enterprise-edition/documentation/index.html
    Thanks,
    Hussein

  • Need a function to calculate employee attendance data for a given period

    need a function to calculate employee attendance data for a given period
    as
    Working days,
    CL ,
    SL,
    PL,
    LWP
    regards,
    Gaurav Sood.

    Issue resolved

  • I need some simple examples to start with for Oracle ESB

    Hi All,
    Please share some simple examples to startwith for Oracle ESB.
    I need to understand, what are the files are created, once created an ESB project.
    What is the use of the files how to edit them with out using JDeveloper.
    Iam trying to create a simple example.
    I would like to create a file which has only "HELLO" in that file, simple text file inside a folder "INPUT" in my c:\ drive.
    I wanted to create a ESB service which picks up the file and add a string to it like "HELLO" + "ESB" and drop this file into "OUTPUT" folder in c:\ drive.
    How do i do that. I tried to do it when i deploy the integration server connection is gettting hit badly. I dont see that connection any more and i dont see that connection in my JDeveloper.
    I dont want to start with existing code.
    Please help
    Regards,
    Vijay.B
    Message was edited by:
    Vijay.B
    Message was edited by:
    Vijay.B

    Hi,
    If you want to do it from scratch you can basically do the following:
    Make sure you have created an application server and integration server connection in JDeveloper.
    1) Create a new JDeveloper project of type ESB project.
    2) Possibly add a ESB System/Group (open the esb file and click "Create System/Group") to group ESB projects.
    3) Create an XML schema describing your input XML file. Probably one element of type xsd:string.
    4) Create an example XML file which is well-formed and valid according to the XSD from step 3.
    5) Create a new File adapter (inbound/read). A routing service is automatically created.
    6) Create a new File adapter (outbound/write).
    7) Create a routing rule in the routing service in which you invoke the write method of the outbound file adapter. Possibly add a transformation using the XSL mapper.
    8) Deploy the ESB project to the server.
    9) Drop your XML file (from step 4) in the directory in which the inbound file adapter is polling.
    10) If it is ok, the file should be picked up, transformed and dropped in the outbound directory. A new ESB instance should be visible in the ESB console.
    See what files are generated on the filesystem in each of the above steps.
    Regards, Ronald

  • Need Patches for Oracle Fusion Middleware 11.1.1.7.0 with OEL 6.3 64-bit Version

    HI,
    I need Patches for OFM 11.1.1.7.0 version in OEL6.3 64-bit version
    I have searched but could not find exact matching Patches. AS i am looking for SOA, OSB and Weblogic Specific Patches.
    CAn any one please find these out.

    Hi,
    Refer to this doc:
    Announcing Oracle Fusion Middleware 11g Release 1 (11.1.1.7.0) (Doc ID 1535341.1)
    Fixed Bugs List - Patch Set 6 (11.1.1.7.0) for Oracle Fusion Middleware 11g (Doc ID 1535354.1)
    Thanks,
    Sharmela

Maybe you are looking for

  • Goods Recipt againest KANBAN SumJC

    Hello Team , Im facing one error while doing the Goods receipt for KANBAN Summarized JIT call. We received the Summarized JIT call for KANBAN and trying to post the goods receipt using transaction code : PJWE and BORGR_C. The system is giving error t

  • What video format to use for imovie

    How do I convert the video so that I can import it?

  • Dynamic table as output in Function Module

    Hi all, I am trying to output a dynamic table from a FM. I am a generating a dynamic internal table in the FM. Now i want to assign that internal table to a table parameter of the FM so that i can use that table in the calling program. can this be do

  • Delta in BW after R/3 archiving

    Hello, following question: Currently we are thinking about R/3 archiving (with archiving objects). R/3 and BW are connected. In R/3 we want to archive e.g. year 2000 and 2001. In BW are all line items from 2000 - today. What will happen after a R/3 a

  • Creating Labview Host DLL for FPGA

    I have created a DLL for the FPGA host VI. The host VI neads a loop to keep the FPGA running in labview but a call to the DLL function will not return while the loop is running. If I change host VI to one shot I asume that the FPGA start and stop wit