Remove duplicate for a single column table

Hi all

So I try to work on a problem here. I searched the forums but I did find something that works for me. Here's my problem... I have a chart (conversion to a .csv file) with a lot of lines and columns. Each line is a log for a specific serial number file. The amount of columns is fixed. But, I must create a vi to go through the table and remove the duplicates under the original and create a new table. For example, my table might look like this (I added a header desc for clarity):

Job, Tech, SN

1827, SJ, 23827

1825, SJ, 23827

1827, SJ, 47384

1827, SJ, 57483

1827, SJ, 37473

1825, SJ, 37473

But I want a table attached like this:

Job, Tech, SN

1827, SJ, 23827

1827, SJ, 47384

1827, SJ, 57483

1827, SJ, 37473

Can someone help me?

Thank you

Ryan

Here's a version that works if duplicates are not necessarily adjacent. As a side effect, the output array is also sorted by serial number.

Tags: NI Software

Similar Questions

  • Click for a single column in DataGrid event

    I can add an event listener for a DataGrid of type ListEvent.ITEM_CLICK, which is triggered when the user clicks on any part of an entire row in a DataGrid. I want to trigger a click for a single column event. I want only to run a function when the user clicks in just the first column in the data grid and not run raise the event if they click in any other column. Any help would be appreciated.

    EU: event.columnIndex

  • PanelBox and the single column Table

    Hi all

    I have a panelBox with a table T1 single column. I would like to add an array of columns more simple T2 right next to the first table T1.
    Jdev he added under the first table, but I want to be in the same line.

    Is this possible?


    Thank you
    Matthew

    Hi Matthew,

    How to add panelGroupLayout with a horizontal layout inside panelBox and put your tables inside the panelGroupLayout?

    Jean Lou

  • Windows Live Mail - hundreds of duplicate for a single account messages

    I am running the latest version of Windows Live Mail on Windows 7 Ultimate (x 86).

    For the past two weeks I received hundreds of messages in double for a single account. I do not have 'backup on server messages"checked, my mail server support told me there is no problem on their side.

    How can I stop this? Live Mail uses a ridiculous amount of time CPU on it (according to the Task Manager).

    Clean the webmail box solved the problem. Of course, I can't question my AOL account now, but...

  • Remove duplicates and fix a join table

    Oracle 10.2 g

    I have two tables and a table of junction between them.

    Table_a
    name identity
    1 TEST
    2 OF TEST2
    TEST 3

    Table_B
    ID
    1
    2
    3
    4

    TableA_TO_B
    A_ID b_id
    5 5
    1 2
    3 3

    Duplicates could not in table A, but the unique constraint has been accidentally disabled.

    So I want to be able to do is to remove all duplicates of table A, and if there is no line in
    TableA_TO_B that contain identifiers should be deleted, I want to update this line to refer to the now single
    TableA line.

    I am able to find duplicates by practice

    Select the id of the table_a where rowid > (select min (rowid) in the b table_a where b.SID = b.name)

    But after that I'm stuck.

    Hello...

    There may be a more elegant way to do this, rather than create an intermediate table, but... (note that this is NOT tested and may need some tuning/indexing on the staging table if you operate on large data sets!) :

    (1) create a temporary table by storing the ID to keep (and thus the value updated in TableA_B) - Note This code assumes that the folder with the ID (MIN) low will be the value stored in TableA...

    create table tmp nologging as
    select id,name,min(id) over (partition by name) ID_TO_KEEP
    from table_a;
    

    (2) execute the update statement, by changing the values that must be maintained (i.e. no are NOT deduplicated):

    update tablea_b ab
    set a_id = (select id_to_keep from tmp where id=ab.id);
    

    (3) perform the delete duplicates deleting statement in TableA (NOTE: assumes that you do not have etc. funky foreign key constraints on tables!):

    delete from table_a a where EXISTS (select id from tmp where id=a.id and id<>id_to_keep);
    

    I hope that works for you...! ;-)

  • How to remove duplicates from the PL - SQL table?

    Hi gurus,

    I have a PL - SQL table with the following structure
    Authors (SR_NO, Auth_Code, Change_Date, cost)

    This table is filled using a slider. However, this table can have a few lines in double (for column (Auth_Code)
    for example
    SR_NO      Auth_Code       Change_Date                       Cost
    1               A1             14-FEB-09 08.18.47 AM          11.00
    2               A2             14-FEB-09 08.18.56 AM       2839.00
    3               A1             15-FEB-09 08.00.02 AM      1299.00
    4               A1             15-FEB-09 07.00.00 AM        789.00
    5               A3             14-FEB-09 08.18.56 AM        312.00
    6               A4             14-FEB-09 08.19.02 AM        233.00
    I need to get the above result set select the separate lines of Auth_Code including the Change_Date is maximum (and store in another PL - SQL table for treatment later or even the removal of this table will be also!)

    of the data A1 is duplicated and a maximum Change_Date above = 15 February 09 08.00.02 AM.
    Where my PL - SQL Table that results must have given below
    SR_NO      Auth_Code       Change_Date                       Cost
    2               A2             14-FEB-09 08.18.56 AM       2839.00
    3               A1             15-FEB-09 08.00.02 AM      1299.00
    5               A3             14-FEB-09 08.18.56 AM        312.00
    6               A4             14-FEB-09 08.19.02 AM        233.00
    I'm not very aware of the PL - SQL tables and there is no chance to change the existing cursor that fills the data in this table PL - SQL.
    I guess that I need to compare each record of PL - SQL table with others, but do not know how to do this.

    Could you please help?

    Hello

    Like this?:

    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    
    SQL>
    SQL> with data as(
      2  select 1 as SR_NO, 'A1' as Auth_Code, to_date('14-FEB-09 08.18.47', 'dd-mon-yy hh24:mi:ss') as change_date,    11.00 as cost from dual union all
      3  select 2 as SR_NO, 'A2' as Auth_Code, to_date('14-FEB-09 08.18.56', 'dd-mon-yy hh24:mi:ss') as change_date,  2839.00 as cost from dual union all
      4  select 3 as SR_NO, 'A1' as Auth_Code, to_date('15-FEB-09 08.00.02', 'dd-mon-yy hh24:mi:ss') as change_date,  1299.00 as cost from dual union all
      5  select 4 as SR_NO, 'A1' as Auth_Code, to_date('15-FEB-09 07.00.00', 'dd-mon-yy hh24:mi:ss') as change_date,   789.00 as cost from dual union all
      6  select 5 as SR_NO, 'A3' as Auth_Code, to_date('14-FEB-09 08.18.56', 'dd-mon-yy hh24:mi:ss') as change_date,   312.00 as cost from dual union all
      7  select 6 as SR_NO, 'A4' as Auth_Code, to_date('14-FEB-09 08.19.02', 'dd-mon-yy hh24:mi:ss') as change_date,   233.00 as cost from dual)
      8  select * from data d where change_date = (select max(change_date) from data d2 where d.auth_code = d2.auth_code);
    
         SR_NO AUTH_CODE CHANGE_DATE       COST
    ---------- --------- ----------- ----------
             2 A2        14/02/2009        2839
             3 A1        15/02/2009        1299
             5 A3        14/02/2009         312
             6 A4        14/02/2009         233
    
    SQL>
    

    Kind regards

  • How to group them by for a single column of OBIEE 11 g

    Hello

    I have a pivot table, where I dimensions such as Desc, date and columns 1 did. (OBIEE version 11117)

    I need the data to be included in the format, made wise date 2 months and total of the first made of the month

    January 1, 152 January 1531 January 15February 1, 152 February 1528 February 15
    up to the date ofIn total, Jan
    A36123456
    B917368163
    C918459153
    D1319586210

    When the Date parameter, Till Date = Jan 2nd, 15, (running report date parameter).

    I create the time dimension, where based there is if I take the year then it works but if I take months or a date, it does not work.

    [nQSError: 27037] Level pending: "D0 time." "" Time of H0. "" month_mon ". (HY000)

    Ask your Suggestions or help

    Total of jan can be derived as below

    case when 'D0 time. " "" date_day "BETWEEN TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (your_date}) *-(1) + 1, (your_date)) AND TIMESTAMPADD (SQL_TSI_DAY, TIMESTAMPADD (1), (SQL_TSI_MONTH, 1, TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (your_date) *-(1) + 1, (Your_date))) then 'Fact_value' end of another null)

  • How do I see the search for the other column table in a report

    Hello

    I created a 'form on the report' to get entry to reception.  Reception table has the column account_code.  How add place holder account_name column whose value can be fetch from table account_master.

    It is an interactive report on the form region.  I've learned there are two ways, one is to alert the request in the "source" of the report and include account_name column by joining the table account_master.  Another way is to create a calculation field? (not sure).

    I need to know what is the best way to achieve this.  I use APEX 4.2.6. EPG.

    Thank you

    -Anand

    Hi Anad,

    To configure a new column, you must run the page

    In the interactive report drop-> select the columns-> relating to the structure and then save it as the primary default report

    Thank you

    Sunil bhatia

  • Title, title, line-Align multi-column Tables

    File under: trouble Frame, with a little hacky work-around

    In the format of two columns we work routinely, we often need a table that is on the scale of the column, but maybe take in several columns.

    The problem is that the title suite (TableTitle, if used) and never align with the departure of position/title. That's because continuations are starting at the top of the column, while the table itself begins (default "Anywhere") under the anchor line (supposed to be 'in the column' for this discussion)...

    OK, what happens if we change Table > start [Basic] table designer to:

    • Top of the column: Oops, which becomes the top of the Next column, leaving the anchor text column-widower (but it gave me an idea).
    • Top of the Page: Oops, who becomes top of the Next page, leaving the anchor text page-widowed.
    • Float: no effect

    OK, what happens if we change the anchor text Format > paragraph > Format by Designer [paging] to:

    • [Paging] in all of the columns (AAC): Oops, table appears only in the left column on all pages, or;
    • Spacing between lines, including negative and space [base] values seems to have no effect. Using a tiny police only minimizes the problem and he's not healing.

    I thought that I had found how to solve this problem at some point, but did not remember it. I'm writing this in part to seek a simpler solution. Web research has found only one candidate, solid solution, and it was, of course, 404. Perhaps chassis versions have at least the FM7/Win and FM7.1/Unix that I regularly use improvements to this address.

    We normally just to work around the problem by using an AAC format and a table that spans the page, with a gutter of fake Center, simulating a stream of multiple column. In a recent case, I wanted a real wide single-column table of length variable (due to the conditional lines and expected future growth), but I wanted the items to align columns. The table raised on one page, which is a limitation of the next cut.

    Hack: This example requires a text block and page 2-column normal which is 7.5 in wide with a gutter in 0.24 (3.63 in. columns) and a table do not require more than one page. It works for both the provisions 3 and 4 columns.

    1. Use an AAC anchored text frame line.
    2. Create a frame of width (7.5 in.) anchored full page (which may be low, the top of the pass, as you wish).
    3. Create a block of text inside the anchored frame. This framework is:
      one more than your standard page (3-column for this example)
      Same size gutter (0.24 in. for this example).
      Initially pull the block of text to fit inside the frame anchored, so you can get it easily.
    4. Make sure that the default paragraph format (anchored table) of the first column is "in the column".
    5. Use graphics > properties of the object to set the text block inside:
      The value of width: your total width of the text frame standard most 1 column and 1 gutter (11,37 in. for this example).

    Set Offsets: from 0 to 0 (this will push the column at the right out of sight for the moment).
  • Insert your table as soon as the text table anchored inside the text frame.
  • In the table designer, the value Start: top of the column (this pushes the table beginning in column 2).
  • Select the internal text block again.
    The value offset: left: negative column + a gutter (in-3,87 for this example).
  • Now, the table seems to start in the page one column and flows to the additional columns with the alignment of the position.
  • It worked perfectly for my recent requirement. In fact, I used a 3 columns (4 real) for the block of text inside the anchored frame. A bit of math is required, sorry .

    > ... a table and column that spans more than one column...

    > Not quite--I have a table of unique, equal or less than a wide column column,
    > flowing (continuous) in several columns.

    That's what I meant... but misspelled "covers" instead of "flow".  Oops... I just noticed a mistake. To the step #2, I said give a table a value space above 12.0 pt. There should be a negative space above (pt-12,00).

    Above is an example of a view of what I get.

  • question of Style CSS for the adftable: column 10g

    I'm being aligned left the author column in this adf:table, but I can't make it work. The styleClass does not seem to work for her. I looked in the count, but because the styleClass is not applied, I can't work for this single column. Any suggestions?

    Thank you

    Andy
    <af:table rows="15"
                 banding="row" 
                 bandingInterval="1"
                 var="book"
                 id="currentImmunizationsTable"
                 width="900" 
                 value="#{backingbean.books}"
                 rendered="#{! empty backingbean.books}"
                 immediate="true">
      <af:column sortable="true"
                       sortProperty="author"
                       headerText="Author"
                       id="authorColumn"
                       formatType="icon"
                       gridVisible="true"
                       styleClass="column">
        <af:outputText value="#{book.author}"
                               id="authorText">
        </af:outputText>
      </af:column>
      ...
    </af:table>
    Published by: anotherhale on June 21, 2010 14:04

    Hello

    You can post your markup code all of the af:table? and if possible also expose the screenshot of disabled grid lines? This skin do you use? I don't remember any problem with af table grid lines

    Kind regards

    Branislav

  • Photo library - iCloud how to remove duplicates

    All, someone knows something about OSX/IOS 'Photos' app will detect and remove duplicates photo9?  My library 'Photos' 63 299 photos & videos of 2135 from may 2016 and at least 10,000 + of these photos are duplicates (based on an analysis of Photosweeper). I have checked the results of the analysis of Photosweeper by doing a manual visual comparison and check images original in iphoto library (using the function location of show) and confirmed that these 10 000 + photos are images duplicate identical with names of different files in different parts of the photo library database.

    So what is happening and how to stop 10-15% of my picture library being duplicate files! I will raise this directly with the apple support payment for the 1 TB icloud service to cover my very large library 'Photos', which should probably be just a large Photo library!

    A few other comments for those who have a double problem:

    -L' old iPhoto application used to "detect duplicates" when import but the new application 'Photos' does not. Anyone know about this?

    -J' saw the documentation from apple saying the icloud search duplicates in 'Photos' when in the icloud, but clearly not work or it does not work if duplicates exist also in the version of the imac to the library 'Photos '.

    -Beware of apps that claim to find 'photos' duplicate and are recommended on various Internet sites, a number of them don't work with the old iphotos app the new application 'Photos' (I discovered after you pay and download). If you need a remover of duplicates of photos that work with 'Photos' review and stay away from any application that do not specify clearly and explicitly he works with "photos" and has been seen since the release of the Photos app.

    + I paid $10 for "Gemini" dual Finder and has been a complete waste of time that didn't work only not with the "Photos" application (it wasn't not clear documentation or support, and when I trigger it supported by Macpaw that they said gemini does not support photos and told me to buy another app macpaw - I told them to go jump in a Lake).

    + I found very good Photosweeper that you can set to match exact or variable (for example photos of accidental burst which are 99.99% identical but 0,1s collapse) and then you can right click to view original file / image in the library to manually check duplicate (if you are paranoid like me) - there are many other paid apps that also make this store then around

    Photos detects duplicates when you import pictures and when you synchronize with ICPL

    Photos does not analyse the duplicates, but checks for them during import and download of IPCL

    There are a few duplicate programs that are tested as safe with Photos, including PowerPhotos, PhotoSweeper for the pictures and Duplicate Annihilator for Photos - do not use a tested and documented as safe\

    And I'm not clear what your post is about since you are asking how to find duplicates and then provide a good answer - photoSweeper - it is one of the safe and effective ways to remove duplicates for Photos

    LN

  • Remove duplicates from the oracle table using 2 columns

    Hello

    I need to remove the duplicates of an oracle table based on 2 columns in the table.i tried to remove duplicates using the join, but get the error like sql error ora-00933

    Thank you

    Hello

    Here's one way:

    DELETE FROM table_x

    WHERE ROWID NOT IN)

    SELECT MIN (ROWID)

    FROM table_x

    Col_1, col_2

    );

    I hope that answers your question.

    If this isn't the case, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.

    In the case of a DML operation (for example, REMOVE) the sample data should show what look like the paintings before the DML, and results will be the content of the or the tables changed after the DML.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

  • Remove the clicked point of Listbox (single column)

    Hello

    It seems a lot of posts on clear lines of the programmatically multicolumn listbox but not the only column listboxes.

    Woth the help of Martins and GerdW, helped me build a subset of a ListBox with items clicked in a reference list

    Make a table of items clicked in a list

    . How it adds a feature to delete just in case rather than the deletion of the entire list and do it all over again.

    Thanks in advance.

    Have an array of strings to the "REF" enter in the list box and store it on a shift register. When you remove an item (for example, for an event), remove this item from the list (using the removal of the table) and write back to the property Ref of the listbox. A single-column list box works exactly the same way as a multicolumn listbox.

    (Excuse the broken links to properties - what happens when you create an excerpt)

  • Remove duplicates in a column

    I want to delete duplicates in a column main_table based on the column of TLEVEL:

    create the table UNIQ_TEMP
    (TLEVEL, NUMBER (10.0),)
    TABLE-NAME VARCHAR2 (30),
    MAIN_TABLE VARCHAR2 (30)
    );

    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (0, 'ASSIGNMENT', "ATTRIBUTION");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (1, 'ASSIGNMENT', 'LOAD');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (1, 'ALLOWANCE', 'FINANCIAL_TRANSACTION_DTL');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (1, 'ALLOCATION', 'PAYMENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOWANCE', 'MISC_CHARGE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ASSIGNMENT', 'LOAD');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, "ATTRIBUTION" AND "INVOICE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOWANCE', 'FINANCIAL_TRANSACTION_HDR');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOCATION', 'DISCOUNT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOWANCE', 'CHARGE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOWANCE', 'CHARGE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOWANCE', 'CHARGE_DETAIL_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOWANCE', 'SUBSCRIPTION_PERIOD');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOCATION', 'PAYMENT_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (2, 'ALLOWANCE', 'PAYMENT_CHANNEL');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOCATION', 'PAYMENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOCATION', 'DISCOUNT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'MISC_CHARGE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'INVOICE_PERIOD');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'INVOICE_STATUS');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'INVOICE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'CANCELLED_REASON');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'LOAD');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'CHARGE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'CHARGE_DETAIL');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'CHARGE_DETAIL');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'SUBSCRIPTION_PERIOD_STATUS');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'SUBSCRIPTION_PERIOD_STATUS');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'SUBSCRIPTION_PERIOD_STATUS');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'LOAD');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'SUBSCRIPTION');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'PRODUCT_ITEM');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'PRODUCT_ITEM');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'PRODUCT_ITEM');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'BALANCING');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (3, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'MISC_CHARGE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'MISC_CHARGE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'PAYMENT_CHANNEL');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', 'PAYMENT_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "PRODUCT_CODE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "PRODUCT_CODE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "PRODUCT_CODE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'PRODUCT_MASTER');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'PRODUCT_MASTER');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'PRODUCT_MASTER');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "PRODUCT_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'VEHICLE_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'VEHICLE_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'VEHICLE_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'CHARGE_DETAIL_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'CHARGE_DETAIL_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'CHARGE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'CHARGE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', 'DISCOUNT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', 'DISCOUNT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'INVOICE_STATUS_FILTER');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', 'MEMBERSHIP');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'ADJUSTMENT_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (4, 'ALLOWANCE', 'CANCELLED_REASON_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOCATION', "PRODUCT_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOCATION', "PRODUCT_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOCATION', "PRODUCT_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ASSIGNMENT', 'CLIENT');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOCATION', "ALLOCATION_TYPE");
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (5, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (6, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (6, 'ASSIGNMENT', 'CAMPAIGN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (6, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (6, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (6, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (6, 'ALLOWANCE', 'BILLING_CYCLE_TYPE');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (6, 'ALLOWANCE', 'MARKETING_OPTIN');
    INSERT INTO UNIQ_TEMP (TLEVEL, TABLE_NAME, MAIN_TABLE) VALUES (6, 'ALLOWANCE', 'MEMBERSHIP_CARD_TYPE');

    COMMIT;

    TLEVEL TABLE_NAME MAIN_TABLE
    ALLOCATION OF THE ALLOWANCE 0
    1 DISTRIBUTION CHARGE
    1 ALLOCATION FINANCIAL_TRANSACTION_DTL
    1 ALLOWANCE PAYMENT
    2 ALLOWANCE MISC_CHARGE
    2 LOAD DISTRIBUTION
    2 ALLOWANCE ALLOCATION_TYPE
    2 ALLOWANCE ALLOCATION_TYPE
    ALLOCATION OF 2 MEMBERS
    ALLOCATION OF 2 MEMBERS
    ALLOCATION OF 2 MEMBERS
    2 ALLOWANCE BILL
    2 ALLOWANCE FINANCIAL_TRANSACTION_HDR
    2 ALLOWANCE DISCOUNT
    2 DISTRIBUTION CLIENT
    2 DISTRIBUTION CLIENT
    2 ALLOWANCE CHARGE_TYPE
    2 ALLOWANCE CHARGE_TYPE
    2 ALLOWANCE CHARGE_DETAIL_TYPE
    2 ALLOWANCE SUBSCRIPTION_PERIOD
    2 ALLOWANCE PAYMENT_TYPE
    2 ALLOWANCE PAYMENT_CHANNEL
    3 DISTRIBUTION CLIENT
    PAYMENT OF THE ALLOWANCE 3
    3 DISTRIBUTION CLIENT
    3 ALLOWANCE ALLOCATION_TYPE
    3 ALLOWANCE ALLOCATION_TYPE
    3 ALLOWANCE DISCOUNT
    3 MISC_CHARGE ALLOWANCE
    3 BILLING_CYCLE_TYPE ALLOWANCE
    3 BILLING_CYCLE_TYPE ALLOWANCE
    3 INVOICE_PERIOD ALLOWANCE
    3 INVOICE_STATUS ALLOWANCE
    3 INVOICE_TYPE ALLOWANCE
    3 MARKETING_OPTIN ALLOWANCE
    3 MARKETING_OPTIN ALLOWANCE
    3 ALLOWANCE CAMPAIGN
    3 ALLOCATION MEMBERSHIP
    3 ALLOWANCE CAMPAIGN
    3 CANCELLED_REASON ALLOWANCE
    3 ALLOWANCE ALLOCATION_TYPE
    3 LOAD DISTRIBUTION
    3 CHARGE_TYPE ALLOWANCE
    3 ALLOWANCE ALLOCATION_TYPE
    3 MEMBERSHIP_CARD_TYPE ALLOWANCE
    3 CHARGE_DETAIL ALLOWANCE
    3 CHARGE_DETAIL ALLOWANCE
    3 SUBSCRIPTION_PERIOD_STATUS ALLOWANCE
    3 SUBSCRIPTION_PERIOD_STATUS ALLOWANCE
    3 SUBSCRIPTION_PERIOD_STATUS ALLOWANCE
    3 LOAD DISTRIBUTION
    3 DISTRIBUTION SUBSCRIPTION
    3 PRODUCT_ITEM ALLOWANCE
    3 PRODUCT_ITEM ALLOWANCE
    3 PRODUCT_ITEM ALLOWANCE
    ADJUSTMENT OF DIVISION 3
    3 MEMBERSHIP_CARD_TYPE ALLOWANCE
    3 DISTRIBUTION CLIENT
    4 ALLOWANCE MEMBERSHIP_CARD_TYPE
    4 ALLOWANCE MEMBERSHIP_CARD_TYPE
    4 ALLOWANCE MISC_CHARGE
    4 ALLOWANCE MISC_CHARGE
    4 ALLOWANCE PAYMENT_CHANNEL
    4 ALLOWANCE PAYMENT_TYPE
    4 BREAKDOWN PRODUCT_CODE
    4 BREAKDOWN PRODUCT_CODE
    4 BREAKDOWN PRODUCT_CODE
    4 ALLOWANCE PRODUCT_MASTER
    4 ALLOWANCE PRODUCT_MASTER
    4 ALLOWANCE PRODUCT_MASTER
    4 ALLOWANCE PRODUCT_TYPE
    4 ALLOWANCE VEHICLE_CARD_TYPE
    4 ALLOWANCE VEHICLE_CARD_TYPE
    4 ALLOWANCE VEHICLE_CARD_TYPE
    4 ALLOWANCE CHARGE_DETAIL_TYPE
    4 ALLOWANCE CHARGE_DETAIL_TYPE
    4 ALLOWANCE CHARGE_TYPE
    4 ALLOWANCE CHARGE_TYPE
    4 DISTRIBUTION CLIENT
    4 DISTRIBUTION CLIENT
    4 DISTRIBUTION CLIENT
    4 DISTRIBUTION CLIENT
    4 DISTRIBUTION CLIENT
    4 DISTRIBUTION CLIENT
    4 DIVISION DISCOUNT
    4 DIVISION DISCOUNT
    4 ALLOWANCE INVOICE_STATUS_FILTER
    4 ALLOWANCE MARKETING_OPTIN
    4 ALLOWANCE MARKETING_OPTIN
    4 ALLOWANCE MARKETING_OPTIN
    4 BREAKDOWN MEMBERSHIP
    4 BREAKDOWN MEMBERSHIP
    4 BREAKDOWN MEMBERSHIP
    4 BREAKDOWN MEMBERSHIP
    4 BREAKDOWN MEMBERSHIP
    4 ALLOWANCE MEMBERSHIP_CARD_TYPE
    4 ALLOWANCE ADJUSTMENT_TYPE
    4 ALLOWANCE ALLOCATION_TYPE
    4 ALLOWANCE ALLOCATION_TYPE
    4 ALLOWANCE ALLOCATION_TYPE
    4 ALLOWANCE ALLOCATION_TYPE
    4 ALLOWANCE ALLOCATION_TYPE
    4 ALLOWANCE ALLOCATION_TYPE
    4 ALLOWANCE BILLING_CYCLE_TYPE
    4 ALLOWANCE BILLING_CYCLE_TYPE
    4 ALLOWANCE BILLING_CYCLE_TYPE
    4 ALLOWANCE BILLING_CYCLE_TYPE
    4 DISTRIBUTION CAMPAIGN
    4 DISTRIBUTION CAMPAIGN
    4 DISTRIBUTION CAMPAIGN
    4 ALLOWANCE CANCELLED_REASON_TYPE
    5 ALLOCATION MEMBERSHIP_CARD_TYPE
    5 ALLOWANCE CAMPAIGN
    5 ALLOCATION MEMBERSHIP_CARD_TYPE
    5 ALLOWANCE CAMPAIGN
    5 ALLOWANCE CAMPAIGN
    5 ALLOWANCE CAMPAIGN
    5 ALLOWANCE CAMPAIGN
    5 ALLOWANCE CAMPAIGN
    5 ALLOCATION BILLING_CYCLE_TYPE
    5 ALLOCATION BILLING_CYCLE_TYPE
    5 ALLOCATION BILLING_CYCLE_TYPE
    5 ALLOCATION BILLING_CYCLE_TYPE
    5 ALLOCATION MEMBERSHIP_CARD_TYPE
    5 ALLOCATION MEMBERSHIP_CARD_TYPE
    5 ALLOCATION PRODUCT_TYPE
    5 ALLOCATION PRODUCT_TYPE
    5 ALLOCATION PRODUCT_TYPE
    5 CUSTOMER ASSIGNMENT
    5 CUSTOMER ASSIGNMENT
    5 ALLOCATION MARKETING_OPTIN
    5 ALLOCATION MARKETING_OPTIN
    5 ALLOCATION MARKETING_OPTIN
    5 ALLOCATION MARKETING_OPTIN
    5 ALLOCATION MARKETING_OPTIN
    5 ALLOCATION MARKETING_OPTIN
    5 ALLOCATION MEMBERSHIP_CARD_TYPE
    5 ALLOCATION MEMBERSHIP_CARD_TYPE
    5 ALLOCATION ALLOCATION_TYPE
    5 ALLOCATION ALLOCATION_TYPE
    5 ALLOCATION ALLOCATION_TYPE
    5 ALLOCATION ALLOCATION_TYPE
    5 ALLOCATION BILLING_CYCLE_TYPE
    5 ALLOCATION BILLING_CYCLE_TYPE
    6 ALLOWANCE CAMPAIGN
    6 ALLOWANCE CAMPAIGN
    6 ALLOCATION BILLING_CYCLE_TYPE
    6 ALLOCATION MARKETING_OPTIN
    6 ALLOCATION MEMBERSHIP_CARD_TYPE
    6 ALLOCATION BILLING_CYCLE_TYPE
    6 ALLOCATION MARKETING_OPTIN
    6 ALLOCATION MEMBERSHIP_CARD_TYPE


    My requirement is:

    MAIN_TABLE = MARKETING_OPTIN
    AVAILABLE IN MAX (TLEVEL)
    REMOVE DUPLICATES OTHER LEVELS MARKETING_OPTIN

    This should apply to all values in the MAIN_TABLE column

    Help, please!

    still a question is not answered...
    Are you looking for this?

    delete from uniq_temp
    where rowid not in
      (
      select max(rowid) keep(dense_rank first order by tlevel desc)
      from uniq_temp
      group by main_table
      );
    
  • Validation of a single column in a table

    Hello

    I have one with a tabular form. Where/how can I write the validation of a single column (do not duplicate) in this

    in table form. Help, please

    Thank you

    TJ

    Hello

    In my page 11 examples contain some sort solution for this
    http://Apex.Oracle.com/pls/OTN/f?p=40323:11

    You can download the app and check it

    BR, Jari

Maybe you are looking for

  • Question about the use and connection of external mini HDD

    I am the owner of a satellite A30 714, which has only 2 usb ports, and I just bought a mini hard drive (toshiba also), which requires the use of 2 usb ports, which means that I won't have any left port for mouse or something else. The hard drive has

  • Star Wars 15-an002ns: SSD installation socket m2

    Hello Recently I bought HP Star Wars Special Edition laptop for laptop - 15-an002n, which comes with 1 TB of HDD. I think it is too slow for the overall power of the rest of the components, and I intend to install a SSD for the OS. Consulted the manu

  • HP 13 Stream: Stream HP 13 10 Windows will not start

    A moment his works not the other, it is not. I turned it off and when I turned it on only got the HP logo, after that the screen turns off as it is when its about to load, but he returned to the HP logo, it's on a need and I tried many things but it

  • Update for Windows xp (kb898461)

    I tried to install the update for windows xp (kb898461) but whenever I have download the process will stop and cancel the instalation.I tried different options but no one not working, can anyone help me please? What should I do?

  • My Iconia One 7 is a camera problem. Cannot concentrate well enough to read QR codes, etc.

    My Iconia One 7 is a great tablet, but the camera seems a weak point; the color is OK, but I can't focus well enough to use QR code readers. Y at - it a solution?