Find tablenames duplicate, or copies of paintings

Hi all

I need to find the names of the tables that are recurring in the schema, or should I say tables that have multiple copies as:

payroll
payroll_05012014
payrol_bkp
payroll_backup
payroll_bkp05012014

In this example, the payroll is the original table, and all others are copies of it... Now considering the size of the payroll table 2800 MB, so one can imagine how much space is wasted in this scheme...

I need the query to find out these backup copied tables...

Thank you

Aman

Maybe this:

SELECT * from user_tables

WHERE REGEXP_LIKE (table_name,'*(bkp|backup|\d{8}) _ $')

Tags: Database

Similar Questions

  • find suspected duplicates after importation

    I have about 11 000 photos to organize.  I created a catalog name and chose to ignore suspected duplicates.  About 8 000 photos have been imported.  This is reasonable since I consolidated the photos from backups of two computers and current readers.

    How to find suspected duplicates?  I want to check duplicates and remove all duplicates for free disk space.  How to make the photos were not imported?

    Thank you, in advance, for any assistance.

    Ken

    Hi Ken!

    Lightroom does a pretty decent job find duplicates during the import, but is not as easily that once the images are in the catalog. Take a look at http://www.lightroom-plugins.com/DupesIndex.php. You can try it for free and see if it will help you.

  • find all duplicates

    Hello guys,.

    I want to know how to find all duplicate of a set of data records, in my application a duplicate is a combination of two columns, I do not want to group them, I want to know all the records duplicates


    example of

    CREATE TABLE EMPLOYER
    (
    ID NUMBER (12).
    SSN VARCHAR2 (BYTE 9),
    WGE NUMBER (10,2).
    ERR_flg VARCHAR2 (1 BYTE)
    )

    INSERT INTO EMPLOYER(ID,SSN,WGE) VALUES (1,222222222,2532)
    INSERT INTO EMPLOYER(ID,SSN,WGE) VALUES (2,111111111,2352)
    INSERT INTO EMPLOYER(ID,SSN,WGE) VALUES (3,555555555,232)
    INSERT INTO EMPLOYER(ID,SSN,WGE) VALUES (4,555555555,232)

    3RD AND 4TH RECORDS ARE DUPLICATED... I WANT TO SHOW THEM IN MY QUERY AND UPDATE THE ERR_FLG TO 1


    Thank you

    Hello

    Here's a way to get the results of a query without grouping:

    WITH     got_cnt        AS
    (
         SELECT     id, ssn, wge
         ,     COUNT (*) OVER ( PARTITION BY  ssn
                                  ,            wge
                          ) AS cnt
         FROM    employer
    )
    SELECT     id, ssn, wge
    FROM     got_cnt
    WHERE     cnt     > 1
    ;
    

    Almost all of the functions of aggregation (such as COUNT) have analytical equivalents, which can produce the same results without collapsing the data in one row per group.
    The PARTITION BY an analytical function of clause is the clause GROUP BY of an aggregate query.

    However, the update, what is wrong with grouping?
    You can use something like the query above as a subquery in an UPDATE statement, but you will get the same results more simply with GROUP BY:

    UPDATE  employer
    SET     err_flg     = '1'
    WHERE     (ssn, wge)     IN (
                        SELECT    ssn, wge
                        FROM      employer
                             GROUP BY  ssn, wge
                             HAVING    COUNT (*)     > 1
                               )
    ;
    

    Published by: Frank Kulash, 24 May 2010 15:00
    Additional UPDATE... GROUP BY example

  • Find a duplicate query MySQL syntax

    There is a request to "find duplicates" in SQL which is very useful, but I'm not sure what the syntax is for MySQL. It probably has something to do with a distinct group, chosen by but I'm not used to the use of these.

    It is he who finds all duplicates [FullName]

    SELECT CONTACTS.*
    WHERE (((CONTACTS. (FULLNAME) In (SELECT [FULLNAME] [CONTACTS] As Tmp GROUP BY [FULLNAME])
    After HAVING Count (*) > 1)))
    ORDER OF CONTACTS. FULLNAME, CONTACTS.COMPANY

    Anyone know?

    RichardODreamweaver wrote:
    > There is a request to "find duplicates" in SQL which is very useful, but I don't know
    > What's the syntax for MySQL.

    SELECT COUNT (*) AS, FULLNAME, COMPANY reps
    CONTACTS
    GROUP BY FULLNAME, COMPANY
    HAVE > 1 repetitions

    It is not something that I have used myself, but I got from MySQL Cookbook
    by Paul DuBois, published by O'Reilly. I have the first edition, which
    covers MySQL 4.0. I think that the second edition covers MySQL 5.0.

    If you use MySQL on a regular basis, you or your employer must
    Buy immediately. It will be to solve most of your problems and repay its
    cost several times.

    --
    Adobe Community Expert David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Export iPhoto and Finder-creates duplicates

    How can I prevent exporters from duplicates of photos version 1.5 to the Finder.  Since I upgraded to El Capitan 10.11.4 whenever I have export photos unmodified to the finder it sends a NEF format version and a version in the form of file JPEF.  The result is that I now have double the photos.  I want only the NEF files.

    I have not found a way to export only the original RAW file.  You will need to simply delete the jpeg version after export.

  • How can I find several duplicate files and remove the using Windows Explorer

    Somehow I see several duplicate on my computer files.  I can tell when they arrived as all the duplicate files ' _10-Mar-15_1. ' " However, I don't know how they arrived.  I think that Google Drive was the culprit, but I can't be sure.

    How we (me) use Windows Explorer to find all files with "_10-Mar-15_1." and delete them all?

    I am using Windows 7 64 bit

    Thank you!!!

    Windows Explorer can do no such thing. To remove recursively a certain file is easy - see below. To identify duplicates and remove some of them is much more difficult, because:

    • Are two files duplicates because
      -They have the same name?
      -They are the same size?
      -They have the same file date?
      -They have the same content?
      -Everything above?
    • When they are, which ones should be deleted?
      -The oldest?
      -The most recent?
      -The batch?

    Here's how to remove a certain file to recursively. Assume that they are in the folder "C:\Users\BHunter\Documents".

    1. Click the start planet.
    2. Type cmd. exe and press ENTER.
    3. Enter the following command and press ENTER:
      dir/s/b/p 'C:\Users\BHunter\Documents\_10-Mar-15_1 '.
      This will show you all the files whose name above.
    4. del /s /q "C:\Users\BHunter\Documents\_10-Mar-15_1."
      This will permanently delete all files with the name above. You cannot restore them.
  • Is it possible to find the duplicate files easily on XP?

    Hello

    I threw a lot of data in my hard drive & I don't know that it contains a lot of duplicates/snaps etc. Y at - it a freeware to identify & delete the duplicate, because it creates confusion & occupies space unnecessay.

    Concerns

    Hello

    I threw a lot of data in my hard drive & I don't know that it contains a lot of duplicates/snaps etc. Y at - it a freeware to identify & delete the duplicate, because it creates confusion & occupies space unnecessay.

    Concerns

    You mean other than the more than 34,000 hits referring by Google?

    http://lmgtfy.com/?q=%22find+duplicate+files%22+%2Bwindows+%2Bfree

  • move pictures from a memory stick in a different place, and release in addition to the memory stick. I find that the pictures (copies) are always on the memory stick

    I don't want to make copies, which I already have, I want to get out in addition to the memory stick of mnving content in a portable hard drive permanently. My photos are totally assembled in 3 different places in my windows computer (not my fault) Photo Gallery, I don't want the images there are... My collection is private.  Picasa collects all the photos again. I want the originals stored for future use in a hard drive laptop or on disks.

    I do not use the photo gallery, you just need a viewer to open the pix.

    Also, I don't know why you get 4 copies. Some libraries can be deleted if you do not use. I don't remember those that can be deleted, so you'll just to test.

    If I understand correctly: create a folder for the original user and another for the edited pix. After you have moved the pix on the flash drive, you can delete the content of this file and it is there and empty for the next round of pix.

  • How to find images duplicate in multimedia

    I have been using many versions of photoshop elements and edited many of my files. So now, I have a lot of duplicates, near duplicates and versions of the same photo. I think I have more 20 000 photos and they take too much space. I tried to use a remover of duplicates of files and it removed several thousand, but I still see a lot of duplicates when I run photoshop elements 11. I'm tempted to not use the organizer and rely only on a file browser. Does anyone have a solution to this mess?

    Title of the message was edited by: Brett N

  • Find the duplicate rows

    I have a table with column emp_no emp
    I want to know all of the values in this field that has values such as
    34567 and 134567
    an another ex. 67453 and 167453 it is to say all numbers except the first digit is different
    How can I get these values from the table

    Hello

    You can do a self-join.
    This will show that all multiple matches, for example 34567 corresponding both 134567 and 934567.

    If emp_no is a VARCHAR2:

    SELECT       s.emp_no
    ,       l.emp_no
    FROM       emp     s
    JOIN       emp     l     ON s.emp_no = SUBSTR (l.emp_no, 2)
    ORDER BY  s.emp_no
    ,       l.emp_no;
    

    If emp_no is a NUMBER, check the join condition:

    JOIN       emp     l     ON s.emp_no = TO_NUMBER (SUBSTR (TO_CHAR (l.emp)_no, 2))
    

    The above solution is short emp_nos of emp_nos who have exactly one character, concatenated to the left.
    Depending on what you define as a match, you may need to change the join condition.
    Here are two examples:
    l.emp_no LIKE '_ % ' | s.emp_no - any number of additional characters on the left.
    l.emp_no LIKE "%" | s.emp_no | '%' AND l.emp_no! = s.emp_no - any number of additional characters on each side

    Published by: Frank Kulash, March 25, 2009 10:10

  • find duplicates and include two copies... confused.

    Hello Guru,
    I'm trying to find phone numbers in doubles in a data base of phone. I have 2 tables (Agency, tphone_number).
    I need to get the phone duplicate numbers names and agency 2 tables.
    Agency: (agency_id, agency_name, County, State)
    tphone_number:(agency_id,Phone_Number).

    I need to find all duplicate phone numbers and include the agency_id, name of Agency, the County and the State of each duplicate for examination on good deletion or update.
    I know that, to find a duplicate number I can:
    SQL > select phone_number tphone_number where rowid > (select min (rowid) in the tphone_number b where b.phone_number = a.phone_number);

    But how to create a list that includes all of the duplicate data and present agency_id, agency_name, phone_number, county, State of all duplicates, not only show the double single, but more the two organizations that share this phone number in double double.

    It is curious of me, where the post.
    Congratulations in advance.
    with agency as(select 10 agency_id,'XYZ' agency_name,'XYZ' county,'MD' state from dual union all
    select 20 ,'ABC' ,'ABC' county,'MD' state from dual union all
    select 30 ,'ABC' ,'ABC' county,'MD' state from dual union all
    select 40 ,'ABC' ,'ABC' county,'MD' state from dual union all
    select 50 ,'ABC' ,'ABC' county,'MD' state from dual),
    tphone_number as(select 10 agency_id,123 phone_number from dual union all
    select 20,234  from dual union all
    select 30 agency_id,123 phone_number from dual union all
    select 40,234  from dual union all
    select 50,999 from dual)
    
    select s.*,t.phone_number
    from agency s,tphone_number t
    where s.agency_id=t.agency_id
    and phone_number in
    (
    select t.phone_number
    from tphone_number t
    group by t.phone_number
    having count(*)>1)
    
  • How do to find duplicate records in a table, then delete them.

    Hi all

    I'm working on a database of GR 11, 2 under linux. Recently, we have created a unique index on two inplace of columns in a single-column index. When we try to create this index in pre-production and prod to get an error message saying that the "double values found. Now my team asked me to write a pl/sql package or procedure to find these duplicate values and remove it or any other way to do it for them as well. But I'm not familiar with stuff of PL/SQL or data level how to perform this task.
    Please help me on this issue, how can I proceed.
    Thanks in advance for your help.

    Try this:

    
    CREATE TABLE z_test2
    AS
       SELECT 1 a, 'aaa' b FROM DUAL
       UNION ALL
       SELECT 1 a, 'aaa' b FROM DUAL
       UNION ALL
       SELECT 1 a, 'bbbb' b FROM DUAL
       UNION ALL
       SELECT 12 a, 'aaa' b FROM DUAL
       UNION ALL
       SELECT 12 a, 'aaa' b FROM DUAL
       UNION ALL
       SELECT 12 a, 'aaa' b FROM DUAL
       UNION ALL
       SELECT 13 a, 'aaa' b FROM DUAL;
    
    DELETE FROM z_test2 x
          WHERE EXISTS
                   (SELECT '*'
                      FROM (SELECT a,
                                   b,
                                   ROW_NUMBER ()
                                      OVER (PARTITION BY a, b ORDER BY a)
                                      rn
                              FROM z_test2) y
                     WHERE x.a = y.a AND x.b = y.b AND rn > 1);
    
                     
    
  • How to find the value duplicate of each column.

    I have it here are four columns,
    How can I find the duplicate of each columns value.

    with All_files like)
    Select ' 1000 'like BILL, "2000" AS DELIVERYNOTE, CANDELINVOICE ' 3000', '4000' CANDELIVERYNOTE of all union double
    Select ' 5000 ', ' 6000', ' 7000 ', ' 8000' Union double all the
    Select '9000 ', '1000', '1100',' 1200' from dual union all
    Select ' 1200 ', ' 3400', ' 6700 ', ' 8790' Union double all the
    Select ' 1000 ', ' 2000', ' 3000 ', ' 9000' Union double all the
    Select '1230', '2340', ' 3450 ', ' 4560' double
    )
    SELECT * from All_files


    Output should be as shown below.

    1000 2000 3000 4000
    9000 1000 1100 1200
    1200 3400 6700 8790
    1000 2000 3000 9000

    Required to check uniqueness columns.

    Thank you.

    Hello

    If you are not too concerned about performance, this should give you the desired result:

    SELECT distinct INVOICE, DELIVERYNOTE, CANDELINVOICE, CANDELIVERYNOTE
    FROM (
      SELECT a.*,
             count(*) over(partition by t.column_value) cnt
      FROM All_files a,
           table(
             sys.odcivarchar2list( a.INVOICE
                                 , a.DELIVERYNOTE
                                 , a.CANDELINVOICE
                                 , a.CANDELIVERYNOTE ) ) t
    )
    WHERE cnt > 1
    ;
    
  • I have multiples of a single file. How can I get additional copies, but not the original?

    Original title: duplicate files

    ....... I HAVE 2 OR SOMETIMES 3, 4 COPIES OF THE SAME PHOTO... OR SAME SONG... HOW CAN I REMOVE THEM TO A SINGLE COPY SECURE WITH ON DELETE THEM ALL TO GETHER

    You can go through them and remove duplicates manually, or there are many programs that can check duplicate files and delete them if you have copies.

    Here are two free programs:

    Auslogics Duplicate File Finder

    http://www.Auslogics.com/en/software/duplicate-file-Finder/

    Duplicate Cleaner
    http://www.digitalvolcano.co.uk/content/duplicate-cleaner

  • I have a lot of duplicate in my pictures folder, I clean them only to have them back.

    How can I get rid of these duplicates and have only a picture.  Please advise, sincerely, anite.

    How can I get rid of these duplicates and have only a picture.  Please advise, sincerely, anite.

    ==============================================
    Unwanted copies have file names with
    copy "prefix of"?

    Example: Copy of IMG_1455.JPG

    If_yes_maybe the following tutorial, I wrote
    for XP offers a few ideas:

    Also... There is a link to another method
    at the end of this tutorial.

    Here's how to reproduce the unwanted
    copy of...

    Hold down your CTRL key and select multiple files...

    Place your pointer over the selected group
    (holding the key ctrl) and left click / drag
    the group even just the slightest bit... now
    release the mouse button.

    Oooops... multiple copies...

    Maybe the following will help:

    Sometimes most of the person who
    trying to select multiple by holding the CTRL
    or the SHIFT key down while clicking on the left to select the
    image files.

    Copies are created when you are unable to
    completely release the mouse button before
    you move the pointer to another file. When a group
    the selected file is dragged... even the slightest
    release the mouse button will produce a bit...
    copies of all the files previously highlighted.

    It's a little easier if you have your folder
    Options set at single click... that way you can
    select/deselect a file with just a mouse more
    and you don't have to click. For multiples you
    I have to keep... CTRL or Shift.

    Do not click on... no slip... no copy... maybe that of
    your solution. To adjust the click...
    Open a folder and go... Tools / folder
    Options / General tab... Check... 'single click '.
    To open an item"/ apply / OK.

    If you want to delete all the files in a folder
    You can try the following:

    Reach... Edition / select all... or type... CTRL / has...

    With all of the files selected... go... Drop / delete...
    or press your delete key... or... click on the
    Group and choose 'delete '.

    How do I find and remove unwanted 'copies '.
    of your image files.

    Open the folder that the images are saved in and
    on the left, click on the button 'Search' in your toolbar.

    (If you view the files from a montage
    program and do not know where the record is... right
    Click on one of the image files and the menu...
    choose... Properties. The path to the folder will be
    in the tab 'General' to 'Place').

    In the research pane select... "All files and folders".

    In the "All or part of the file name" field. Come in...

    a copy of

    Now... on the left, click on the search"" button.

    When the search is complete... go to... Edition / select all...

    Then go to... Remove / delete.

    You will see a dialog box asking if you are sure
    you want to delete the files, click Yes.

    Now... on the left, click on the 'Back' button in your toolbar.

    Now the remaining files should be your originals.

    If you delete the wrong files... recover from
    your basket now.

    Also see the following article:

    Trouble fixing: stop Windows copy
    Files accidentally when Ctrl-click selecting
    http://www.howtogeek.com/HOWTO/Windows-Vista/fixing-annoyances-stop-Windows-from-copying-files-accidentally-when-CTRL-click-selecting/

Maybe you are looking for