Can i delete redundancy rows in geometry column?

i had more geom data rows in table . it's repeat,repeat and repeat .
but i want keep single row for twinssssssss
the "distinct" and "group by" function can't help me...
please take a idea for me ?

Hi,
for that case i would use SDO_AGGR_CENTROID or SDO_AGGR_UNION .
I had a similar problem where i had to determine, if geometries are redundant. I used here SDO_AGGR_UNION and then SDO_AGGR_CENTROID because i was not interested in one single point. Another way could be the use of SDO_WITHIN_DISTANCE or my favourite for searching duplicate geometries:
a selfjoin:
SELECT /*+ ORDERED */
b.<ID>, a.<ID>
FROM table_1 a, table_1 b
WHERE SDO_RELATE (a.<geometry>, b.<geometry>,
'mask=EQUAL querytype=WINDOW') = 'TRUE'
AND a.<ID> != b.<ID>;
regards, Andreas

Similar Messages

  • Can't delete a row with a long raw in it

    I have a table with a long raw column. I am using the following
    to try to delete the row from a copy of 8i Lite:
    stmt.executeUpdate("delete from blobs where blobid="+blobId);
    My application hangs at this point. Any theories?
    I am using this driver: oracle.lite.poljdbc.POLJDBCDriver
    I am using the 1.2.2 jdk.
    -Justin
    null

    I opened activity monitor, closed all programs associated with pdf, preview, etc., however that didn't work. A simple restart did the trick. Even though I could see the pdfs on my destop the files were deleted. That explains why I couldn't manipulate the file. Somehow the file got caught in the graphics string.......????

  • Can't delete matrix row in UDO form

    Hi all,
    i have a problem. I've already searched the forum and found a couple of solutions, but they didn't work.
    I can't delete a matrix row. I'm on patch level 39, i've read that patches from 32 to 38 gave some problems with matrix row delete.
    Any one has notice regarding same problems with patch 39?
    I post the code i'm using for the delete.
    matrix.FlushToDataSource()
    dbDataSource.RemoveRecord(row - 1)
    matrix.LoadFromDataSource()
    UIForm.Update()
    'Removes the change trace row
    changeTrace.RemoveAt(row - 1)
    UIForm.Mode = BoFormMode.fm_UPDATE_MODE
    Thanks in advance

    Hi,
    I'm using PL39 and I can delete rows in matrix (you are right in previous patch there was an error, and it´s imposible to delete rows). I saw the code you put and I doesn´t undestand what you are trying to do. I explain what I do:
    - I enable the menu 1293 to delete row in a matrix, in the menu event i put the following code
                         Dim oMtx As SAPbouiCOM.Matrix =
    oMtx.FlushToDataSource()
    This works for me.

  • How can I delete a row in access using the database toolkit?

    I want to delete just one row of a access table using the database toolkit. Can it be done and if so How?

    Take a look at page A-1 of the database connetivity manual. It has information on making a sql query that will delete. You will need to use this command with the dbtools execute query function. Look in the shipping examples for an example with this function.

  • How can I delete a row in datatable!

    This is my code:
    com.sun.jsfcl.data.DataCache.Row row =
    dataTable1Model.getDataCache().get(dataTable1.getRowIndex());
    row.setDeleted(true);
    dataTable1Model.commit();
    dataTable1Model.execute();
    we use msSQLServer2000.

    Another way, to do this (here's a snippet from AppModel)
    http://developer.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    if your in your DataTable you have a column of
    checkboxes. If you click on the checkbox and outside your
    datatable, you have a delete button. Note, sel is the id of
    the checkbox.
    for (int rowIndex = dataTable1.getFirst();
    rowIndex < (dataTable1.getFirst() + dataTable1.getRows());
    rowIndex++) {
    log("OnePage: check row " + rowIndex + " for deletion");
    dataTable1.setRowIndex(rowIndex);
    if (!dataTable1.isRowAvailable()) {
    log("OnePage: no data available for row " + rowIndex);
    break;
    if (sel.isSelected()) {
    log("OnePage: mark row " + rowIndex + " for deletion");
    com.sun.jsfcl.data.DataCache.Row row = dataTable1Model.getDataCache().get(rowIndex);
    row.setDeleted(true);
    count++;
    sel.setSelected(false);
    // Perform the actual delete transaction and report results
    try {
    dataTable1Model.commit();
    info("Total rows deleted: " + count);
    } catch (Exception e) {
    log("OnePage: Delete commit exception", e);
    error("OnePage: Delete commit exception: " + e);
    // Re-execute the query to pick up new results
    try {
    dataTable1Model.execute();
    } catch (SQLException e) {
    log("OnePage: Delete reselect exception", e);
    error("OnePage: Delete reselect exception: " + e);
    Refer to the AppModel for more info
    Thanks
    John B
    JSC QA

  • I can't delete "Front Row".

    I installed "Front Row" then I tried to erase it. I found everything of it (application, preferences, etc.) and I erased them. Now, after a month, when I start my computer, it appear ("Front Row") and I've to close it pressing "esc" key. It doesn't appear since I switch off my computer then I restart it. Thank you.

    You may have to force quit the application running from the Activity Viewer/Monitor in Applications -> Utilities. Make sure it does not reappear. If it doesn't show in that application, go to Applications -> Utilities -> Terminal, widen the window full screen width, and type at the prompt:
    ps -ax
    There you should find the PID for the Front Row application on the same row as the Front Row application itself.
    Once you know that PID number at the prompt type:
    kill -15 PID number
    If it doesn't let you kill it, try
    sudo kill -15 PID number
    All commands given in the Terminal should be followed by a Return key pressing. PID number will be one number, and you should use the number itself to substitute for wherever it says PID number in the instructions above.
    Once you have verified Front Row is no longer running with
    ps -ax
    Deleting it should be possible.

  • Can't delete newly added row in inner advanced table

    Hi!
    Im using advanced in advanced table and i can't delete a row after i added in detail table, i have to refresh the page in order to delete the row.
    This is what i do.
    execute query from master table
    expand row in master table
    click Add row button in detail table(standard button in footer)
    add data in columns
    click save button
    select row with multiselect and then click delete button but nothing's happend i just can delete older rows
    also i can't edit the new row just older rows.
    i think that is something wrong with the cache :S
    any ideas?
    thanks!
    Edited by: 892088 on 03-nov-2011 16:06

    still no answers, the problem is with the new row created because i cant delete or modify it.
    any comment?

  • Can i delete the Subtotal column in Cross Table?

    i create a crosstab named: hr_count, used for counting different kind of employees.
    and in 'crosstab expert', the 'column' area, i have 2 items: level_1 and level_2; the 'row' area has 1 item: department.
    my problem is, there's always a 'subtotal' column at the last column of every level 1 area, but i don't need it, i can see the 'total' number at the very last column.
    how can i delete or suppress this 'subtotal' column?
    i know i can suppress the very last 'total' column by right click mouse and choose not to show this column, but it seems i can do nothing to the 'subtotal' column. or, i must keep this 'subtotal' column in the table?

    Hi Stefanie Tan ,
    You can suppress the sub totals, Right click on your cross tba and go in Cross Tab Expart--Customize Style tab here you will find Rows: and Columns; which will have fileds.  Now click on Rows fields once you click on sub group field you can see suppress subtotal check box enables click in that check box and click on Ok.  Now check for sub totals.
    Thanks,
    Sastry

  • How to delete empty row without validation error in ADF Table(EMP)

    Hi Everyone,
    I am using EMP Table in ADF jspx page to insert the data into database.when i insert a row into table by createInsert operation,it inserting the row.But I need to delete that row immediately with out entering any value.
    But it showing some validation error at empno.Is there any ways to delete the empty row?if not,what are the reasons that we can't delete the row.
    could any one tell me the reasons!!
    Thanks in advance!!
    With Best Regards,
    Amar
    Edited by: 973755 on Dec 11, 2012 6:42 AM

    Amar,
    I am little confused with your logic here.....
    but if you are trying to remove the row by clicking Remove button, you can set the immediate property to true and that remove function will run without executing any entity validation.......
    -R

  • How do I delete a row in Microsoft Access from a vi using the database toolkit

    Using the database toolkit 1.01 how can I delete a row from my vi

    Bambi,
    I know you already got the answer from Jeremy in the LabVIEW Forum, but I wanted to place this link here so that other users could see the answer.
    How do I delete a row in Microsoft Access from a vi using the database toolkit
    Evan

  • Delete extra spaces in table column

    hi how can i delete extra spaces in table column for example if table column value is store as 'ÄAAAAA ' how can i delete that extra space
    this is the column i what to delete extra spaces
    select SUBTYPES  from tablesubtype;am in
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for Solaris: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    Edited by: adf0994 on 2012/12/03 11:30 AM
    Edited by: adf0994 on 2012/12/03 11:42 AM

    UPDATE tablesubtype
       SET SUBTYPES  = TRIM (SUBTYPES);Doing RTRIM alone will not suffice coz it'll only remove Right Spaces and NOT Left ones.
    I guess, in your case doing a TRIM will be more beneficial to be safe and prevent any left spaces in future.
    For intermediate spaces... try this.
    UPDATE tablesubtype
       SET SUBTYPES  = REGEXP_REPLACE (SUBTYPES, ' ', '');Hope this Helps,
    Ranit B.
    Edited by: ranit B on Dec 3, 2012 2:33 PM
    -- added regexp

  • Delete all rows except 10 random rows

    Hi,
    how can I delete all rows from table JOBS except 10 random rows?
    Someone asked it before (not here..): http://stackoverflow.com/questions/10820105/t-sql-delete-except-top-1
    but I didn't understand the answer, and I don't think it will work in PL/SQL.
    If the answer in StackOverflow does works in PL/SQL, I will glad if someone explains me with better example,
    If the answer in StackOverflow does'nt work in PL/SQL, I will glad if someone gives me an example.
    thanks!

    Actually I found a problem in this solution.
    delete from jobs where rowid not in (select rowid from jobs where rownum<=10) ;I used the above code to delete all rows except 10 in JOB_HISTORY table, but for some reason the rows that were chosen were only in the range in which (144<=EMPLOYEE_ID<=146).
    I tried this several times and always i stayed with rows in this range.
    Here are the queries:
    SQL> select employee_id from job_history;
    EMPLOYEE_ID
    144
    144
    144
    144
    144
    145
    145
    146
    146
    146
    146
    146
    146
    146
    147
    147
    147
    147
    149
    149
    149
    156
    156
    156
    156
    156
    156
    156
    158
    158
    158
    158
    158
    158
    158
    158
    159
    159
    159
    165
    165
    165
    171
    171
    171
    171
    46 rows selected
    SQL> delete from job_history where rowid not in (select rowid from job_history where rownum <= 15);
    31 rows deleted
    SQL> select employee_id from job_history;
    EMPLOYEE_ID
    144
    144
    144
    144
    144
    145
    145
    146
    146
    146
    146
    146
    146
    146
    147
    15 rows selected
    SQL>
    Glad if someone can explain me why I get this result.
    Thanks
    Edited by: 998093 on 05:01 05/04/2013

  • How to soft delete a row from the target table?

    Could someone help me on this requirement?
    How to implement the below logic using only ODI? I am able to implement the below logic with the "DELETE_FLAG" as "N".
    I want to make the latest record with the flag as "N" and all the previous other records with the flag as "D".
    Thanks a lot in advance.
    I have a source table "EMP".
    EMP
    EMPID FIRST_NAME
    1 A
    2 B
    First name is changed from A to C and then, C to D etc. For each data change, I would add a target row and mark the latest row as "N" and the rest as "D". The target table would contain the following data:
    Target_EMP
    EMPID FIRST_NAME DELETE_FLAG
    1 A D
    1 C D
    1 D N

    The problem is that I can't delete the row cause it demands from me to fill the mandatory field previously. It takes place when the key field is ROWID. In other cases delete is succesful.

  • Does't delete final row in alv

    hi. friends..^^
    i want delete row in alv.
    I can delete first row and second row ... final - 1 row.(r_param->t_deleted_rows is not initial)
    But...I can't delete final row.(r_param->t_deleted_rows is initial)
    how to delete final row?
    vesion 2004s
    METHOD on_alv_delete .
      DATA : ls_row LIKE LINE OF r_param->t_deleted_rows.
      DATA : ls_lecture TYPE REF TO zlecture.
      FIELD-SYMBOLS : <fs_lecture> TYPE zlecture.
      LOOP AT r_param->t_deleted_rows INTO ls_row.
        ls_lecture ?= ls_row-r_value.
        ASSIGN ls_lecture->* TO <fs_lecture>.
        DELETE FROM zregistration WHERE lecture_num = <fs_lecture>-lecture_num
                                    AND devide_num  = <fs_lecture>-devide_num.
      ENDLOOP.
    ENDMETHOD.
    Edited by: Ki-Joon Seo on Aug 22, 2008 12:09 PM

    Hi
    Are you using the method <node_name>->Invalidate( ). to delete it's data ?
    If not, try using this method in you logic to delete the data.
    Regards,
    Trikanth

  • To add/delete the rows in ALV report outpout

    Hi,
    Is there any way by which we can  add/delete the rows in ALV report output.
    Thanks
    Ankul

    Hi,
    Try out this way:
    data: i_modified TYPE STANDARD TABLE OF mara,"For getting modified rows
            w_modified TYPE mara.
    CASE e_ucomm.
          WHEN 'EDIT'.
          perform save_database.
          CALL METHOD ref_GRID->REFRESH_TABLE_DISPLAY.
        ENDCASE.
    FORM SAVE_DATABASE .
    data: i_selected_rows TYPE lvc_t_row,                "Selected Rows
          w_selected_rows TYPE lvc_s_row.
    * Getting the selected rows index
        CALL METHOD ref_grid->get_selected_rows
                    IMPORTING  et_index_rows = i_selected_rows.
    * Through the index capturing the values of selected rows
        LOOP AT i_selected_rows INTO w_selected_rows.
        READ TABLE it_tab INTO wa_it_tab INDEX w_selected_rows-index.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING wa_it_tab TO w_modified.
          APPEND w_modified TO i_modified.
        ENDIF.
      ENDLOOP.
      MODIFY mara FROM TABLE i_modified.
    Thanks,
    Krishna

Maybe you are looking for