Can we find the lines twice in a table

Hi all
Just curious, is it possible, we can find all the lines twice in a table without comparing the individual columns?

for example if we have a table emp (without any unique constraint defined) with the emp_id, emp_name and dept columns
and entire duplicate as lines below:
< pre >
emp_id, emp_name dept
1 ABC 20
1 ABC 20
2 30 DEF
DEF 2 30 < / pre >

Here, there are duplicate lines. Do we have all these criteria where we can search all duplicate line without comparison emp_id, emp_name and dept?

Thank you
Deepak

I'm not sure what you mean by "Comparing the individual columns", but there are several ways to identify duplicates.

And here's one:

SELECT  EMP_ID
,       EMP_NAME
,       DEPT
FROM    EMP
GROUP BY EMP_ID
,       EMP_NAME
,       DEPT
HAVING COUNT(*) > 1

Here's another:

SELECT  DISTINCT
        EMP_ID
,       EMP_NAME
,       DEPT
FROM
(
        SELECT  EMP_ID
        ,       EMP_NAME
        ,       DEPT
        ,       ROW_NUMBER() OVER (PARTITION BY EMP_ID, EMP_NAME, DEPT ORDER BY EMP_ID, EMP_NAME, DEPT) RN
        FROM    EMP
)
WHERE   RN > 1

Tags: Database

Similar Questions

  • can not find the line in the graph editor

    I put a few keyframes left the movement spuqre.  but I can't find the line in the graph Editor.   

    Please help me

    graph editor.jpg

    You must select a property to view the chart.

  • Where can I find the line start/run in the box start Windows

    I want to use the Msconfig function but cannot find the start/run line in which to enter.  When I hit the start icon (the microsoft logo), it is not clear.  I'm looking in the wrong place.  If this is the right place where it appears.  If this is not the right place to be looking, where should I look?

    Thank you

    1. you can use the search box instead of running it. It all works the same.

    2 in this case is to know how to restore/enable option run in the right side of the Start Menu:
    Right click on the Start button > properties > at the top, click on Start Menu tab > click Customize > scroll to find command run, put a checkmark in the box > OK

    You check Startmenu. Execution option should be there now.

  • Excel: How can I find the line of a cell finding its value

    Hello

    I developed a VI that looks up a value in an excel workbook, and I need a way to retrieve the row of the cell containing that value.
    Thank you for your help

    Hindaz wrote:
    I use the discovery of the activeX

    Then, use the property on the object Row range returned by find a method.

    Ben64

  • ﷯Error - error message: an element on the page "News" at location 33 642 requires the pixelation, but is too large to rasterize. Resize it smaller and try again... I can't fix this or find that the line number.  How can I find this line?

    ﷯Error - error message: an element on the page "News" at location 33 642 requires the pixelation, but is too large to rasterize. Resize it smaller and try again... I can't fix this or find that the line number.  How can I find this line?

    I don't know why it worked, but I changed the police and was able to download Web site.  Thanks for your help!

  • Where can I find the 'new tab' icon in Safari (El Capitan) v. 9.1?

    Where can I find the 'new tab' icon in El Capitan Safari c. 9.1?

    If there is a + button on the line of tabs, press the key.

    (141457)

  • Satellite U200 163: where can I find the RAM slots?

    Where can I find the RAM slots?

    Hello

    As much as I know there is no RAM Bay at the bottom of the unit and it is so just only one possible place to the RAM slots
    Slots seem to be hidden under the keyboard.

    In order to get access to the RAM, you will need to remove the keyboard.
    Usually, it is not very difficult but if you have no experience with this dismantling then you should ask a technician for assistance.

    But here's a few details;
    Keyboard is fixed with 2 screws. They are hidden under the cover of thin plastic under the line of F1 to F12 key.
    Remove the plastic cover, remove the screws, then you could remove the keyboard take note; the keyboard is connected to the motherboard with the flat cable.

    So don't use force!

  • Where can I find the Airport extreme N model number?

    Where can I find the Airport extreme N model number?

    It seems that the 3, 4, 5 are all Ns.

    I wish that my laptop wireless backup. A friend has his 5 AE do this via the usb port that is connected to a powered hub.

    Thanks for any advice.

    ett2 wrote:

    Where can I find the Airport extreme N model number?

    It seems that the 3, 4, 5 are all Ns.

    That's kind of how count you...

    But if your AE running 7.6.4 firmware it is Wireless N...

    A look at the base of the number. It is on the first line of molded rubber or paper label. A1408 is Gen5.

    I wish that my laptop wireless backup. A friend has his 5 AE do this via the usb port that is connected to a powered hub.

    Now for a piece of info you don't want to know.

    http://pondini.org/TM/airport.html

    Apple does not support the time machine is a model AE before last Gen6. A lot of people use it, but it can be unreliable... people have a different experience. Just to note that it is not taken in charge and reliability might be good bad or anywhere between the two... Ask yourself how useful is a backup that is not reliable.

  • Find the line in the 2d array

    Help, please...

    I have a 2d double table and I want to find a specific line, an extract to new table 2d.

    My 2d array is:

    100 31.3 25.3 32.1 25.6
    100 31.3 25.3 32.1 25.6
    160 32.4 25.5 33.5 26
    170 33.2 25.8 34.3 26.2
    100 33.9 26 35.2 26.4
    160 32.4 25.5 33.5 26
    160 32.4 25.5 33.5 26
    100 31.3 25.3 32.1 25.6
    170 33.2 25.8 34.3 26.2

    and I want to find the line with the numbers 100,160,170 and build new table 2d

    100 31.3 25.3 32.1 25.6
    160 32.4 25.5 33.5 26
    170 33.2 25.8 34.3 26.2

    Please help... tnx, tnx

    I guess you should be more specific about your question. If you have decided to find values that are present in the 1st column, you can use search table 1 d and pass the index to the 2D array index so you will get a table 1 d of line then build the table by searching for the element.

    That's what explains Yamaeda

  • Power outage required that I put in place a new user in Vista that I did. Now I can't find the original user and associated files. All files seem to be missing. Help?

    Laptop must have been left on. Last night power Outtage. I went back and put the computer to find guests requiring that I created a user, I did. Now, I can't find the original user and all files seem to have disappeared.  Have Vista

    Hello

    1. don't you make changes on the computer before this problem?
    2. do you remember the exact and complete message on this line?

    Check if you can find the user original files of accounts in the following path:
    C:\Users\[user account name]

    The article could be useful to you.
    Difficulty of a corrupted user profile
    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

  • Where can I find the BOOT.INI file. INI?

    Hello

    On my old computer, HP Compaq nc6120, produktnummer: PU884ET #AK8, Serienummer: CNU508F2WQ, I installed Windows xp and windows 2000.

    Before when I started this computer I could choose if I want to start windows xp or windows 2000. But lately this menu does not appear. Comes to the place a line of messege 'bad START. INI file. From C:\WINDOW\', then windows xp starts automatically.

    I tried to find the CHEST. INI file with the help of windows search, but could not find this file. Can you please help how can I find the CHEST. INI file and how to fix? Or at least how to start Windows 2000?

    Sincerely

    ARIO Nahram

    Hej,

    Sorry to heare who. We hope that get you healthy as soon as possible.

    No I googled BOOT. INI and got a good code to it and the computer works as well as before. Thanks for concerning.

    Take care

    ARIO

  • I can't find the Clipboard in my Windows 7

    I have Win 7 Home Premium. I can't find the Clipboard!  I have a Gateway laptop, NV57H and since the 21-9 to present it works differently. Slow, suspended and morose. I have Norton and other stuff like and running analyses do updates and try to keep on top of security issues were ongoing. Even downloaded and PAID for PC Cleaner Pro. Come on guys and girls please y at - it something else out there? I'm not the only one, not from what I see here, but in speaking also w/friends. HELP US!

    Original title: Clipboard AND CE WHO IS GOING ON?

    Where you are waiting to see the Clipboard?  It is not something tangable, there one under covers place in RAM where Windows puts everything that you cut or copy.  I like to think it's a little invisible Elf in the attic.  :-)  I do not understand why you think there is a problem with it.

    These PC snake oil cleaners, they don't do any good, important and can hurt.  Avoid them.

    I have 5 computers at home and 28 that I support, of which none have performance problems.  You can still find no reports any problem you seek because among the billions of people who have same 1% of 1 billion computers is 10 000 000.  If you do a Google search for just about anything you want, you can usually get more than 1 million hits.

    Bottom line, I have no reason to believe there is a broad generic problem, as you suggest, but I'll give you some things to check.

    Get your updated antivirus program and boot into Safe Mode. Note that some viruses can hide from your normal antivirus program, so you really need to scan in Safe Mode. To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode. Then run a complete system scan.

    -

    Microsoft has suggestions and offerings to

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-remove-a-computer-virus

    -

    Moderator Forum Keith has a few suggestions along this line to

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3

    -

    If that suits him fine. If this is not the case, use system restore to go back to an earlier date at the beginning of the problem. To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore. Click on the box that says show more restore points.

    -

    You can check the corrupted system files. Open an administrator command prompt and run SFC if the above does not help. Click START, and then type CMD in the search box, right-click on CMD. EXE and click run as administrator. Then, from the command prompt type sfc/scannow.

    -

    Finally if all else fails, you can look at the rather cryptic system event log. To do that click on start-> Control Panel-> administration-> event viewer tools. Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.

    `

    When you get your system in good working condition, I invite you to back up your system up to an external hard drive and make it regular periodic updates.

    -

    I hope this helps. Good luck.

    e you a list of things that you can check.

  • How to anchor on other sensitive design objects?  (I once saw a video of adobe and can not find the link now)

    How to anchor on other sensitive design objects?  (I once saw a video of adobe and can not find the link now)

    Check the 'Smart Position' option in the advanced part of the Position properties. Drag the "anchors" that are normally found at the top and left side of the blade up to what they encounter the side of the object you want to anchor to (a blue line appears, you can release the mouse then):

  • My computer crashed and having to reinstall photoshop elements 11.  Can not find the disk, but still have an installation code.  Where can I get the download?

    My computer crashed and having to reinstall 11 elements.  Still, I have the authorization code, but can't find my disc.  Where can I find on the line to reinstall? I checked with Adobe online, but can't find the download for this product.  Help!

    http://www.Adobe.com/downloads/other-downloads.html can help

  • Can't find the APEXExport utility!

    I installed Oracle 11 g XE Apex, and there I have all the features of the app and use it.

    However I can't find the location of the ApexExport utility!

    Anyone know how I can get that?

    Thank you

    Mehr

    Hi Mehr,

    When you are on the page of the main generator of the application, it is in the list on the right. (V4.2.3)

    If you mean the command line utility, so it should be under the Oracle's Home Directory. I don't have a practical 11xe installation, but find a directory under house relating to the apex, probably oracle apex and then look for a directory utilities\oracle\apex, and you should find APEXExport.class.

    Concerning

    André

Maybe you are looking for