Delete duplicate lines

hi, i have duplicate lines, how to keep one line and delete other line, please see the data.
GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
SDO_GEOMETRY(2002, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
-87.913022, 41.977339, -87.912718, 41.977415))
SDO_GEOMETRY(2002, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
-87.913022, 41.977339, -87.912718, 41.977415))
many thanks

Hi 908275,
Here's a quick demo:jot_test@11gR2> create table duplicate_demo (
  2     id number primary key,
  3     geometry sdo_geometry);
Table created.
jot_test@11gR2>
jot_test@11gR2> delete from user_sdo_geom_metadata where table_name = 'DUPLICATE_DEMO';
1 row deleted.
jot_test@11gR2> insert into user_sdo_geom_metadata (table_name, column_name, diminfo, srid) values
  2  ('DUPLICATE_DEMO','GEOMETRY',sdo_dim_array(sdo_dim_element('x', 600000, 650000, .01), sdo_dim_element('y', 300000, 350000, .01)), 81989);
1 row created.
jot_test@11gR2>
jot_test@11gR2> create index duplicate_demo_spind on duplicate_demo(geometry) indextype is mdsys.spatial_index;
Index created.
jot_test@11gR2>
jot_test@11gR2> insert into duplicate_demo (id, geometry) values (1,
  2  sdo_geometry(2003, 81989, null, sdo_elem_info_array(1,1003,1),
  3  sdo_ordinate_array(600000, 300000, 601000, 300000, 601000, 301000, 600000, 301000,600000, 300000)));
1 row created.
jot_test@11gR2>
jot_test@11gR2> insert into duplicate_demo (id, geometry) values (2,
  2  sdo_geometry(2003, 81989, null, sdo_elem_info_array(1,1003,1),
  3  sdo_ordinate_array(600000, 300000, 601000, 300000, 601000, 301000, 600000, 301000,600000, 300000)));
1 row created.
jot_test@11gR2>
jot_test@11gR2> insert into duplicate_demo (id, geometry) values (3,
  2  sdo_geometry(2003, 81989, null, sdo_elem_info_array(1,1003,1),
  3  sdo_ordinate_array(600000, 300000, 601000, 300000, 601000, 301000, 600000, 301000,600000, 300000)));
1 row created.
jot_test@11gR2>
jot_test@11gR2> insert into duplicate_demo (id, geometry) values (4,
  2  sdo_geometry(2003, 81989, null,sdo_elem_info_array(1,1003,1),
  3  sdo_ordinate_array(600200, 300200, 601500, 300200, 601500, 303000, 600200, 303000,600200, 300200)));
1 row created.
jot_test@11gR2>
jot_test@11gR2> insert into duplicate_demo (id, geometry) values (5,
  2  sdo_geometry(2003, 81989, null,sdo_elem_info_array(1,1003,1),
  3  sdo_ordinate_array(600200, 300200, 601500, 300200, 601500, 303000, 600200, 303000,600200, 300200)));
1 row created.
jot_test@11gR2>
jot_test@11gR2> insert into duplicate_demo (id, geometry) values (6,
  2  sdo_geometry(2003, 81989, null,sdo_elem_info_array(1,1003,1),
  3  sdo_ordinate_array(600200, 300200, 601500, 300200, 601500, 303000, 600200, 303000,600200, 300200)));
1 row created.
jot_test@11gR2>
jot_test@11gR2> insert into duplicate_demo (id, geometry) values (7,
  2  sdo_geometry(2003,81989,null, sdo_elem_info_array(1,1003,1),
  3  sdo_ordinate_array(601706,301321, 602554,301321, 601744,302032, 602612,302028, 601790,301429, 601706,301321)));
1 row created.
jot_test@11gR2>
jot_test@11gR2> insert into duplicate_demo (id, geometry) values (8,
  2  sdo_geometry(2003,81989,null, sdo_elem_info_array(1,1003,1),
  3  sdo_ordinate_array(601706,301321, 602554,301321, 601744,302032, 602612,302028, 601790,301429, 601706,301321)));
1 row created.
jot_test@11gR2>
jot_test@11gR2> commit;
Commit complete.
jot_test@11gR2>
jot_test@11gR2> -- Identify which rows duplicate each other
jot_test@11gR2> select /*+ ORDERED */ b.id, a.id
  2  from duplicate_demo a, duplicate_demo b
  3  where sdo_equal (a.geometry, b.geometry) = 'TRUE'
  4  and a.id != b.id
  5  order by 1,2;
        ID         ID
         1          2
         1          3
         2          1
         2          3
         3          1
         3          2
         4          5
         4          6
         5          4
         5          6
         6          4
         6          5
         7          8
         8          7
14 rows selected.
jot_test@11gR2>
jot_test@11gR2> -- Now delete the duplicates
jot_test@11gR2> delete from duplicate_demo a where rowid > (
  2     select /*+ ORDERED */ min(rowid)
  3     from duplicate_demo b
  4     where sdo_equal (b.geometry, a.geometry) = 'TRUE');
5 rows deleted.Regards
John

Similar Messages

  • How to delete duplicates of some specific fields in internal table

    i am having internal table of it_ekko.
    in that i am having some data of PO no, Line Item,IR value and IR qty......
    i am having data like below.
    PO                        Line Item   IR Value    IR QTY 
    200310051          0010         1500           4500
    200310051          0010        1500           4500
    200310052         0010           0                   0
    200310052          0010       0               0
    now where ever IR value and IR qty is present i wanted that to display only once against that PO and line item
    i wanted like below
    PO                        Line Item   IR Value    IR QTY 
    200310051          0010         1500           4500
    200310051          0010            0              0
    200310052         0010             0                0
    200310052          0010            0               0
    Field names for IR value and IR Qty are Menge2 and dmbtr2.
    How to do that.........
    I cant use
    Delete adjacent duplicates of it_ekko by ebeln = wa_ekko-ebeln and
                                                                          ebelp = wa_ekko-ebelp.
    because i wanted that po and same line items , how many times it is like that only.....
    in it_ekko table i only wanted to delete duplicates of menge2 and dmbtr2.
    Pls suggest the code

    sort itab by po item ascending.
    loop at itab into wa.
    at new wa-item.
    if wa-qty1 ne 0 and wa-qty2 ne 0.
    move wa to wa_final.
    append wa_final to i_final.
    endat.
    endloop.
    or
    loop at itab into wa.
    at new wa-item.
    if wa-qty1 ne 0 and wa-qty2 ne 0.
    write wa.
    endat.
    endloop.
    make sure that the qty1 and qty2 is not character type , then in control statement it will replaced by *.

  • Delete duplicate from internal table

    HI Abapers,
    I have a query on how to remove the duplicates from an internal table
    My internal table data is as follows :
    Cno    Catg1  Catg2
    01       0         1000
    01      2000         0
    I want to get only one record as
    01   2000  1000
    How to  get the result.
    I tried sorted by cno and used delete duplicates but it was not helpful.
    Is there any other alternative to get this done
    Please help me.
    Regards,
    Priya

    check it out with delete adjacent duplicate records
    Deleting Adjacent Duplicate Entries
    To delete adjacent duplicate entries use the following statement:
    DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>
                                      [COMPARING <f1> <f 2> ...
                                                 |ALL FIELDS].
    The system deletes all adjacent duplicate entries from the internal table <itab>. Entries are duplicate if they fulfill one of the following compare criteria:
    Without the COMPARING addition, the contents of the key fields of the table must be identical in both lines.
    If you use the addition COMPARING <f1> <f 2> ... the contents of the specified fields <f 1 > <f 2 > ... must be identical in both lines. You can also specify a field <f i > dynamically as the contents of a field <n i > in the form (<n i >). If <n i > is empty when the statement is executed, it is ignored. You can restrict the search to partial fields by specifying offset and length.
    If you use the addition COMPARING ALL FIELDS the contents of all fields of both lines must be identical.
    You can use this statement to delete all duplicate entries from an internal table if the table is sorted by the specified compare criterion.
    If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4.

  • Deleting Duplicate entries from Internal tbale

    Hi All,
    I have used this code to delete duplicate entries from an internal table.
      DELETE ADJACENT DUPLICATES FROM IT_KOSTL COMPARING KOSTL hours.
    After this statment, still the internal table will remain with a duplicate row.
    Earlier table content before the delete statement:
    Lno  KOSTL                PRCTR                       hours                      hours1 
    1    2081010205     0000208101                 5525.000          1574.500
    2    2081010105     0000208101       105162.000     73854.750
    3    2081010105     0000208101       105162.000     73854.750
    4    2081010205     0000208101        5525.000     1574.500
    The Table gets modified after execution of DELETE statement as follows.
    Lno  KOSTL                PRCTR                       hours                      hours1 
    1    2081010205     0000208101                 5525.000          1574.500
    2    2081010105     0000208101       105162.000     73854.750
    3    2081010205     0000208101        5525.000     1574.500
    Why the line 3 is still present in the table?
    I hope as per that syntax, this line too should get delete.... Is it right?
    Basically i would like to delete both line 3 and line 4 from....
    How to resolve this issue?
    Please help me out....
    Regards
    Pavan
    What might be the reason?

    >
    Pavan Sanganal wrote:
    >   DELETE ADJACENT DUPLICATES FROM IT_KOSTL COMPARING KOSTL hours.
    > Why the line 3 is still present in the table?
    >
    > I hope as per that syntax, this line too should get delete.... Is it right?
    >
    Let me answer you all doubts.
    Why the line 3 is still present in the table?
    Actually it's not 3rd line, it's 2nd line.3rd line were deleted.
    when delete adjecent duplicates trigger than it would delete lower line(3rd in your case) not upper line.
    I hope as per that syntax, this line too should get delete.... Is it right?
    NO.

  • Need to delete duplicate condition types from ME22N

    Hi Experts,
    I have a requirement to delete duplicates from ME22N, header and item.
    Scenario : On adding condition in header the same will be reflected in items and vice versa.
    I tried using ME_PROCESS_PO_CUST and userexit RV61AFZB.but not resolved.
    Kindly suggest.
    Regards,
    Mohammed Samiuddin.

    Hi -
    The CHECK method gets triggered when you click 'SAVE' and 'CHECK' in ME21N / ME22N but may not trigger when you press 'enter'.
    PROCESS_HEADER triggers incase any change to header details but not (always) for change in header conditions. PROCESS_ITEM get triggered when change in item data for a particular item.
    If you to use CHECK method.
    You can get the header as well as item conditions, you can get in this method.
    DATA:   lw_header_data       TYPE mepoheader,  
                  li_items            TYPE purchase_order_items,
                 lw_items             TYPE LINE OF purchase_order_items,
                   lw_item_data         TYPE mepoitem,
                li_item_data        TYPE STANDARD TABLE OF mepoitem,
                  li_item_conditions  TYPE mmpur_tkomv.
       IF im_header IS NOT INITIAL.
          CALL METHOD im_header->get_data
            RECEIVING
              re_data = lw_header_data.
          CALL METHOD im_header->get_items
            RECEIVING
              re_items = li_items.
          LOOP AT li_items INTO lw_items.
            lv_items = lw_items-item.
            CLEAR lw_items-item.
            CALL METHOD lv_items->get_data
              RECEIVING
                re_data = lw_item_data.
            APPEND lw_item_data TO li_item_data.
            CLEAR lw_item_data.
    CALL METHOD lv_items->get_conditions
              IMPORTING
                ex_conditions = li_item_conditions.
        ENDLOOP.
    ENDIF.
    But I am not sure if you will able to set the conditions in the check method. You can try.

  • Abap Query - Delete duplicates

    I
    I'm doing an abap query in SQ02 with LIKP and LIPS tables.
    As output I just want lines with different entries in LIPS of material.
    How can I delete the duplicates? With instruction delete ADJACENT DUPLICATES FROM XXXX COMPARING vbeln matnr, how can I identity the table?
    Thanks
    Dora

    Hello Dora,
    It is a very well known difficult task to use 'Delete Adjacent Duplicates' syntax in Infoset Query because of the fact that you are not aware of the internal table.
    Two methods to address this:
    1. Study the repeating lines and use another suitable join in the tables manually, which can eliminate the undesirable duplicates.
    2. The other one I always practiced was, Study all fields of the repeating lines. Identify at least one the field value which is not same in these duplicate lines. Suppose you have a field ABCD and values X in one and Y in other. And you have decided to have the lines with value X. Then give the following syntax in the Record Processing section of SQ02.
    CHECK TABLE-ABCD = 'X'. 
    This would remove the lines with Y.
    KJogeswaraRao

  • How to Delete duplicates rows without using rowid/distinct.

    How to delete duplicates rows present in a table without using rowid or even distinct.

    How about:
    SQL> SELECT * FROM t1;
             A          B
             1          2
             2          3
             1          2
             4          4
             4          4
             4          4
    SQL> DELETE FROM t1
      2  WHERE (a, b) IN (SELECT a, b FROM t1
      3                   GROUP BY a, b
      4                   HAVING COUNT(*) > 1) and
      5        rownum = 1;
    1 row deleted.
    SQL> /
    1 row deleted.
    SQL> /
    1 row deleted.
    SQL> /
    0 rows deleted.
    SQL> SELECT * FROM t1;
             A          B
             2          3
             1          2
             4          4Although, if I was asked a similar question with all those restrictions, my first response would be along the lines of: Is this question indicative of the way I will have to work if I join this company? If so, there is no point answering because I wouldn't touch this job with a ten foot pole.

  • Delete duplicate entries

    Please go to the following website:-
    http://help.sap.com/saphelp_nw04/helpdata/en/06/aafd54fc4011d195280000e8353423/content.htm
    and please scroll down to find:-
    <b>Deleting Adjacent Duplicate Entries</b>
    To delete adjacent duplicate entries use the following statement:
    DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>
                                      [COMPARING <f1> <f 2> ...
                                                 |ALL FIELDS].
    Then  please go to the last example  where the code is written as :-
    DELETE ADJACENT DUPLICATES FROM ITAB COMPARING ALL FIELDS.
    IS  THIS CORRECT ?
    Regards
    abaper.learner

    Hi learner,
    <b>Deleting a sequence of lines</b>
    DO 101 TIMES.
    DELETE TAB_DEST INDEX 450.
    ENDDO.
    DELETE TAB_DEST FROM 450 TO 550.
    <b>Deleting a set of lines</b>
    LOOP AT TAB_DEST
      WHERE K = KVAL.
    DELETE TAB_DEST.
    ENDLOOP
    DELETE TAB_DEST WHERE K = KVAL.
    <b>DELETE ADJACENT DUPLICATES</b>
    As with the ORDER BY clause it could be better to avoid using SELECT DISTINCT, if some of the fields are not part of an index. Instead use ABAP SORT + DELETE ADJACENT DUPLICATES on an internal table, to delete duplicate rows.
       LOOP AT TAB1.
        READ TABLE TAB2 INDEX SY-TABIX.
          IF TAB1 <> TAB2.                
          TAB_DIFFERENT = 'X'. EXIT.    
        ENDIF.                          
      ENDLOOP.                          
    ENDIF.                              
    IF TAB_DIFFERENT = SPACE.   " ...                             
    ENDIF.                              
    IF TAB1[] = TAB2[].    " ...              
    ENDIF.               
    Regards,
    Kumar.

  • Delete duplicate entriess from the internal table its urgent pls help.

    Hi friends,
    Hope everybody is doing good,Here is m query on delete duplicate data from the intenal table.
    I have an internal table which contain data in the following format.
    Doc No Comp Cod Vendor Assignment
    1500000009 JM11 00000000
    1500000008 JM11 20070212(Repeating)
    1500000007 JM11 20070212
    1500000006 JM11 00000000
    1500000005 JM11 00000000
    1500000004 JM11 00000000(Repeating)
    1500000003 JM11 00000000 (Repeating)
    1500000002 JM11 00000000
    1500000001 JM11 20050302
    1500000000 JM11 00000000
    1500000003 JM11 10000088
    1500000001 JM11 10000088
    1500000030 JM11 10006260
    1500000010 JM11 10006269
    1500000008 JM11 10006269
    1500000006 JM11 10006269
    1500000004 JM11 10006269
    if you see the document numbers,there are some document number which are repeating here,there are some document numer which contain vendor number but not the assignments,some of the document numbers contain the assignments but not the vendors.
    If my internal table contain this kind of data with repeted document numbers than i want the document number which contains only the vendor number.
    Pls help me with the appropriate logic,its urgent.
    Thanks a lot
    mrutyun^

    Hi,
    <u><b>Deleting Adjacent Duplicate Entries</b></u>
    To delete adjacent duplicate entries use the following statement:
    DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>
    [COMPARING <f1> <f2> ...
    |ALL FIELDS].
    The system deletes all adjacent duplicate entries from the internal table <itab>. Entries are
    duplicate if they fulfill one of the following compare criteria:
      Without the COMPARING addition, the contents of the key fields of the table must be
    identical in both lines.
      If you use the addition COMPARING <f1> <f2> ... the contents of the specified fields <f1>
    <f2> ... must be identical in both lines. You can also specify a field <fi> dynamically as
    the contents of a field <ni> in the form (<ni>). If <ni> is empty when the statement is
    executed, it is ignored. You can restrict the search to partial fields by
    specifying offset and length.
      If you use the addition COMPARING ALL FIELDS the contents of all fields of both lines
    must be identical.
    You can use this statement to delete all duplicate entries from an internal table if the table is
    sorted by the specified compare criterion.
    If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4.
    Examples
    DATA: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA ITAB LIKE HASHED TABLE OF LINE WITH UNIQUE KEY COL1.
    DO 4 TIMES.
    LINE-COL1 = SY-INDEX.
    LINE-COL2 = SY-INDEX ** 2.
    INSERT LINE INTO TABLE ITAB.
    ENDDO.
    LINE-COL1 = 1.
    DELETE TABLE ITAB: FROM LINE,
    WITH TABLE KEY COL1 = 3.
    LOOP AT ITAB INTO LINE.
    WRITE: / LINE-COL1, LINE-COL2.
    ENDLOOP.
    The output is:
    2    4
    4   16
    The program fills a hashed table with a list of square numbers. The DELETE
    statement delete the lines from the table where the key field COL1 has the contents 1 or 3.
    Regards,
    Bhaskar

  • How can i delete duplicates from my itunes account?

    At "View" I chose "Show duplicates."
    Now what do I do to delete duplicates quickly without having to delete each one separately?
    THanks

    Hello, singinheart. 
    Thank you for the question.  Since you have already identified the duplicate media you just have a couple more steps to go.  This article outlines the remainder of the steps in order to mass delete the duplicates. 
    How to find and remove duplicate items in your iTunes library
    http://support.apple.com/kb/ht2905
    Cheers,
    Jason H. 

  • How do you delete duplicate tracks off your playlist?!

    How do you delete duplicate tracks off your playlist - everytime I connect my hard-drive it adds another of every single track - argh!!!!
    I remember there being a 'delete duplicate tracks' option on a much older version of itunes - is this still available and if not if you opt for the 'consolidate library' option will this automatically save to you computer as I have too much music for my laptops memory capacity! On top of that how can I stop this issue from contantly re-occuring everytime I connect my hard-drive?! Apologies if im being thick here.... xX*laura*Xx

    You are doing something wrong, iTunes doesn't add tracks to the library unless you ask it to, so there is a problem somewhere in your workflow which is creating the duplicates. For example, having iTunes set up to "Copy files to the iTunes Media folder when adding to library" and then repeatedly adding in a folder from an external drive would do it.
    Once you've worked out how to stop creating new duplicates you can look at the issue of deduping what you already have. See this recent post for some thoughts and a script that may prove useful.
    tt2

  • How do you delete duplicate songs in your library without having to delete each song individually??

    How do you delete duplicate songs in your library without having to delete each song individually?

    mauijiminar wrote:
    Go to iTunes, select view and click show duplicates. Hold control and A ( select all) and then delete.
    Not a good idea! The "show duplicates" feature shows "all" duplicate tracks, but you only want to delete the "extra" copies, not the "originals".
    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background, including how to delete the extra tracks manually if you prefer.
    tt2

  • How do I delete duplicate songs, but keep a link in their original albums to the single copy of the song left, so it will play in each album in sequence as if it were still there?

    Greetings!
    After importing my 300 or so CDs into iTunes, I found I have tons of duplicate songs.
    Example: I have a song that came in a original album, then in again in a "Greatest Hits" album, then again in a "Hits of the 80's" album, and again in a soundtrack album. I have now have 4 copies of the exact same song.
    How do I delete duplicate songs, but keep a link in their original albums back to the single copy of the song left, so it will play in each album in sequence as if it were still there?
    I don't think this currently exists, but as my library keeps growing the duplicates keep growing.  It would be nice if Apple sees this and adds a way to link songs to multiple albums.
    I don't want to create a custom playlist for every album that has a duplicate song or two (I'd have dozens of playlists) - thought about fixing it that way but not really practical.

    To my knowledge, there is no way of doing what you want. The only workaround is to create playlists for the other albums containing the track, but that isn't practical for most people.
    You could provide Apple with feedback here: http://www.apple.com/feedback/itunesapp.html

  • How do you delete duplicate photos in the photo section of your iPad?

    How do you delete duplicate photos in the photo section of your iPad?  My iPad has duplicated n tripled my photos n want let me delete them.  I can delete photos from any other section but not in photos, this is taken up all my memory. Help!!

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • How do I delete duplicate songs from my library that have been automaticly downloaded from itunes?

    How do you delete duplicate songs from an iphone 3gs?  I did the automaticly download song feature when doawloading from my CPU and now there are 11 songs that no matter what I do will not come off my phone.  I have tried everything.  Also how do you shut off this automatic download feature?

    Hello momoandfam,
    Welcome to Apple Support Communities.
    Take a look at the article linked below, it’ll answer your questions about finding and deleting duplicate tracks in your iTunes library.
    Find and remove duplicate items in your iTunes library - Apple Support
    Take care,
    -Jason

Maybe you are looking for

  • "move" command doesn't work in case of files on network

    I setup a theWatchFolder fold on network as Watch Folder. This works like when the folder on network gets a file, I'm notified via email and the file should move from watch folder (which is on network) to theDestinationFolder (which is also on anothe

  • Mainstage 2.2.2 with 10.68 and mountain lion

    I currently use Mainstage 2.1.3 on Snow Leopard, for live performances, and it works great. I am curious about either upgrading to Mainstage 2.2.2 and/or Mountain Lion.  I am afraid of issues coming up from either or both upgrades.   I also use Logic

  • Primary key,Froign key , Unique key

    I want the answer of following questions. 1) Primary key create cluster index or simple index? 2) What is cluster index : I know only( cluster index stored record at physical level in sorted order) if there is another difference then tell me 3) Can I

  • Unknown serial

    When installing Adobe CS6 Master Collection, I'm getting an error the serial is unknown. I did use the serial before, but due to an installtion problem I have to reinstall Adobe. The serial has been registered on my own Adobe account, so I'm sure I'm

  • Over riding static methods

    hi i wrote two static methods with same signatures in two different classes. i know that static methods never override.but observe this code.. class staticoverload1 static void display()                System.out.println("i am from first display"); c