This query not work?

I am writing a query as part of my project to do-

I have a contact in the table that stores phone numbers of all employees in a phone of the column. This column is not a unique constraint, so duplicate values are in there too. Now, I'm checking these duplicate values. This query not work?
Select the phone of the contact by phone group after having count (*) > 1?

I know that I can always publish this and test, but I don't have my tables created yet. I'm still writing my code.
Help, please

user6440749 wrote:

I know that I can always publish this and test, but I don't have my tables created yet. I'm still writing my code.

create table contact (phone number);
insert into phone values (1234567890);
insert into phone values (1234567891);
insert into phone values (1234567892);
insert into phone values (1234567893);
insert into phone values (1234567894);
insert into phone values (1234567892);

And then run your selection. It's probably faster than writing this post and ask someone else to do.

Tags: Database

Similar Questions

  • Good answer... This query not work?

    Hi all

    Thanks in advance.

    Is it possible to use subqueries in a Delete statement as follows?

    WITH CTE AS

    (

    SELECT TOP 10 * FROM #TEST

    ORDER BY ID DESC

    )

    REMOVE ETC

    Ashokram wrote:

    Thanks for the reply...

    Why I got this doubt is I want to delete records of a

    table based on its ROWNUM or ROW_NUMBER()

    REMOVE FROM...

    ROWNUM WHER BETWEEN 100 AND 200;

    Give me an idea...

    Hello

    not a good idea. Rownum or ROW_NUMBER is just a rank according to the order you want to the query.

    You can probably do it with the function analytic row_number assuming that you clearly how you want to order your lines, but I do not understand the reason behind it.

    Can you please explain your business case?

    Kind regards.

    Alberto

  • I get a message saying: Mail must fix its information on your mailbox store. The Quit and open again mail! None of this does not work I can receive and send mail through google please someone can help me

    "I get the message:" Mail needs repair information on your mailbox store. Exit and open the mail again. »

    None of this does not work. Please can you help me?

    Mail is version 8.2 (2104)

    iMac 27 inch mid 2011

    Processor: 2.7 GHz processor intel core i5 memory: 4 GB 1333 MHz DDR3 graphics: AMD Radeon HD 6770 M 512 MB

    Troubleshooting post - Yosemite

    Address postal (Yosemite): If you are unable to receive messages

    Address postal (Yosemite): If you are unable to send messages

    Post not send or receive messages after updating to OS X

  • How to solve this error "the game met a fatal DirectX issue while trying to start. Try a different screen resolution or bit depth. If this does not work, try new video drivers. »

    Hi all

    I get the following error every time I try and start Asherons call on a new Dell Latitude E5510 laptop.

    The game has encountered a fatal DirectX problem trying to start.
    Try a different screen resolution or bit depth. If this does not work, try new video drivers.

    This error occurs just after clicking the world to enter.

    • I have a fresh install of Win7 64 bit (entirely the window update)
    • The latest Intel HD - v8.15.10.2622 01/10/2012 graphic card driver.
    • A sweet DX 9 and DXDiag and 11 installation reports no errors.

    I lowered res video and depth of color, but without result.

    Digitized internet and found others with the issue but no resolution, I could see.

    Anyone have any ideas/suggestions?

    I love a solution restored for the following driver and the problem resolved.

    V8.15.10.2599 21/10/2011

  • Adobe Creative Cloud is full of photos would like to delete, but this does not work, how can I do?  Wim

    Hoi

    Adobe Creative Cloud is full of photos would like to delete, but this does not work, how can I do?

    Thanks Wim

    Move this thread for: Adobe Creative Cloud

  • In bookmarks, I have several files. Bookmark help says to drag a new ontop file in the folder to include. However, this does not work.

    As above

    fredgrim said: "In your first image I can do steps 1, 2 and 3, but 3 opens all the files as I said in my last answer."

    After completing step 3, a limited number of records is displayed. That is why step 4 says "Scroll bar to use to locate your file". Have you seen that?

    fredgrim said: "I used to be able to drag a bookmark on an existing folder and it became included in this folder."

    1. Yes I know. I posted a picture in my first answer, demonstrating how to do this in the sidebar bookmarks that you said has not worked for you.
    2. So, I asked if you could add bookmarks with the 'star' or using right-click > bookmark this page to be sure you can add bookmarks by other methods.
    3. It's not possible drag button the identity of the Site to the folder using the 'star' or right-click > Bookmark this method on the page, because, by design, the Add Bookmark dialog window closes when you click anywhere outside the Add Bookmark dialog window.

    I have thousands of bookmarks and hundreds of folders and subfolders and have no problem with one of the methods for you. My preference is to drag the identity of the Site to a folder button in the sidebar.

    In earlier versions, with the menu bar, you could also drag the identity of Site for the word "Bookmarks" button in the Menu bar and continuing to hold down the mouse left click button, the drop down bookmarks would be open, then continue dragging the bookmark in the menu drop-down to the folder of your choice of bookmarks and releasing the mouse left click on the record button to your choice.

    If you are unable to add bookmarks at all, you may need to see-> http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Insert the query not working

    Hello


    There is a table called RCCL_REMINDER_MAILS, I'm checking weather the user exists in the table or not, if the user exist insertion process may not work on the other insertion must be done


    DECLARE

    VARCHAR2 (1000) OF THE USER.

    BEGIN

    SELECT DISTINCT RCCL_REMINDER_MAILS USER AUTHOR WHERE UPPER (AUTHOR) AS UPPER(:APP_USER);

    IF THE USER IS NULL THEN

    insert into RCCL_REMINDER_MAILS (AUTHOR, DATE1, COUNT) values (: app_user, sysdate, 1);

    END IF;

    end;


    I am trying to run this code, it is not work please suggest me in modifyint code


    Thank you
    Sudhir

    TRY TO PLS

    DECLARE
       cnt   NUMBER;
    BEGIN
       SELECT COUNT (*)
         INTO cnt
         FROM rccl_reminder_mails
        WHERE UPPER (author) LIKE UPPER (:app_user);
    
       IF cnt = 0
       THEN
          INSERT INTO rccl_reminder_mails
                      (author, date1, COUNT
                      )
               VALUES (:app_user, SYSDATE, 1
                      );
       END IF;
    END;
    

    Published by: sree on July 26, 2010 23:05

  • Gmail moves to the calendar after that I open it and continually. This does not work on Opera.

    Gmail almost immediately moves to the calendar. Hit the back button goes back to the normal position and almost immediately moves again to the calendar. This seems to be limited to Firefox because it is not on opera.

    This has happened

    Each time Firefox opened

    Yesterday, is July 7.

    Thank you Melissa - I was able to correct the problem by following the suggestion of disabling the add-on integrated Gmail.
    -Tom

  • When I open a program, I see flashing colors around the window. This does not work in safe mode.

    Hi, I have Windows 7 running on a new 4330 s HP's ProBook. I find when I open a window envelope program flashes of clear color. When the computer has started in safe mode the flashing stops. When we run the Task Manager and look under the processes tab, I see that the file named ReStart.exe is disappear and reappear when I try and stop the process, I get a message window titled terminate treatment impossible and the message in the window's "the operation could not be performed. Access is denied. Can anyone help that when the window is flashing the program will not respond to mouse clicks and keyboard entry. I ran virus with Trend Microsystems and AVG free version checks, but I still have this problem.

    original title: FLASHING WINDOWS

    Hi Guyz,

    I hv a system HP 4530 s, I installed fresh windows 7 Home Premium and after installing the drivers I had "Restart.exe"problem." IE blinking of windows. I uninstalled the "HP internet sharing ' program and the problem solved.» Try this. Thanx

  • I REALLY need an answer to this - cursor not working not properly.

    I tried to ask this question before and only got an abusive answer saying that I did not write clearly.  I can only use the words appearing on the screen.  I am just learning Photoshop, and saying: 'You SHOULD know' does not help.

    My cursor seems to be stuck in the tool expands or whatever you call you know what I mean.  The loupe.

    I need him back a simple arrow that I can move and then click and drag.  It is not that.

    Please limit your answers to the simple idea of how to get the cursor to do what it is supposed to.  Really, I don't expect to be attacked for asking a simple question.

    Thank you very much.

    Kenneth

    You must click on the button first graduated filter to get the + cursor. Make sure that Adobe Camera Raw is updated to 9.1

  • By selecting "print" in Outlook on Firefox causes "save file" to open up; This does not work on Internet Explorer and did not use on Firefox - why now and how remedy

    While on Firefox and Outlook emails, when I select characters, instead of print, a dialog box appears asking me to save the file. He has never done this before. I tried to print several emails & he went to 'file save' every time. So, I tried to save the file. When I then pulled upwards the file backup, it wouldn't let me "open" the file to then try to 'print' - he only asked me to "backup" again. I, then, you exit Firefox and open Internet Explorer and went into Outlook to try to print my emails it and it let me print my emails. I, then, updating Firefox (I needed to do) and tried to print my Outlook emails so that in Firefox; but, I always get the same answer "unprinted" / "save the file" that troubled me before the update. Help me, please.

    When you enter {Ctrl + P} is your printer selected in the upper part where it says printer - name?
    Otherwise, select the printer you want to use.

    And to the right a bit - and what is footprint drop checked?
    If so, remove the check mark.

  • When you use Internet Explorer, I can download files from the incredimail site. This does not work when I use Firefox. I see no differences in the settings. Can someone help me?

    I can download IncrediMail gold Gallery when I use internet explore content how I want, but when I use firefox sometimes it allows me to download content from the Gallery, but would not allow me to download more, or he wouldn't let me just download

    • "Clear the Cache": Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
    • 'Delete Cookies' of sites that cause problems: Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

  • I just paid $24 to convert my pdf XLSX VISA and this does not work because VISA put two pages on one page, then it divides the second at the end with the dates.  Any help?

    A pdf page to convert xlsx would look like this:

    14/01/15 Safeway $ 95,15 01/02/15 Safeway $ 47.27

    16/01/15 Safeway $119,84 04/02/15 Safeway $17,92

    Some 25 lines or more before it goes to the next page for 30 pages.

    It converts like this:

    14/01/Safeway $95,15 15 01/02/15

    16/01/15 Safeway $119,84 04/02/15

    And then 30 pages later, he has the other part of the lines:

    Safeway $ 47.27

    Safeway $ 17.92

    It is, of course, to know how to use.

    ANY HELP?

    Hi charlesj55705064,

    Have you tried to use this https://cloud.acrobat.com/exportpdf online service, check if you get the same result.

    Kind regards
    Nicos

  • When you use Internet Explorer, I can upload files to a Web site. This does not work when I use Firefox. I see no differences in the settings. Can someone help me?

    I am simply by changing IE to Firefox and would like to get rid of Internet Explorer. But because I need the upliading thing, I have to stick to it.

    Your above posted the details of the system tampon() obsolete show with known risks of security and stability.

    1. Shockwave Flash 10.0 r12
    2. Java plug-in 1.6.0_13 for Netscape Navigator (DLL Helper)

    Update the Java plugin to the latest version.

    Update the Flash plugin to the latest version.

  • SQL query simple SQL Developer takes, the wizzard of XE does not work

    Hello everyone

    I wrote this simple query that developer SQL works well, but when I try to run a report based on this sql query, it tells me invalid sql statement. It's true, maybe it's not valid because this IF clause in there... but Developer SQL seems to be very tolerant or includes more...

    I wrote this is because obviously if there is no Boss, ie = 0 then I would get an error when it division by 0, so I put that 0 just for selecting the right


    If count (bosses) > 0
    Select company, zip code.
    sum (Boss/staff)
    assessment
    Group of company, zip code

    Thank you very much

    Alvaro

    Ok. This should work:

    Select company, zip code.
    -case when count (staff)! = 0 here end sum (Boss/staff)
    assessment
    Group of company, zip code

    If this does not work, could you please explain, how your table looks like?

Maybe you are looking for