duplicate second record from capture

Hello

My requirement is to ignore the duplicate first record and then capture duplicate remaining below sample database. If duplicate don't aren't there, then it should also captured by the program

I used the rank function but its not sequenced properly.

Can someone help me.

Thanks in advance

with abc as

(

Select 101 as id, "Risg" as name, to_date (January 23, 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 101 as id, 'Risg', to_date (January 23, 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 101 as id, 'Risg', to_date (27 January 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 102 as id, 'Loha', to_date (26 January 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 102 as id, 'Loha', to_date (26 January 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 103 as id, 'Herring', to_date (29 January 2014 ',' MON-DD-YYYY "") as join_date of union double all the

Select 104 as id, 'Ben', to_date (January 30, 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 104 as id, 'Ben', to_date (January 31, 2014 ',' MON-DD-YYYY "") as the double join_date

)

Select * from

(

Select abc.*,

Rank() over (partition by the identification of join_date order) like rnk

ABC

) where rnk > 1

Output

IDNAMEJOIN_DATE
101RISG23/01/2014 00:00
101RISG27/01/2014 00:00
102Loha26/01/2014 00:00
103Herring29/01/2014 00:00
104Basu30/01/2014 00:00

hope under query allows...

with abc as

(

Select 101 as id, "Risg" as name, to_date (January 23, 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 101 as id, 'Risg', to_date (January 23, 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 101 as id, 'Risg', to_date (27 January 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 102 as id, 'Loha', to_date (26 January 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 102 as id, 'Loha', to_date (26 January 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 103 as id, 'Herring', to_date (29 January 2014 ',' MON-DD-YYYY "") as join_date of union double all the

Select 104 as id, 'Ben', to_date (January 30, 2014 ',' MON-DD-YYYY "") as join_date of all the double union

Select 104 as id, 'Ben', to_date (January 31, 2014 ',' MON-DD-YYYY "") as the double join_date

),

t like)

Select abc.*, count (1) NTC (partition in order of identification by id).

ROW_NUMBER() over (partition by order of identification by id) rnk from abc)

SELECT id, name, join_date from t

where cnt = 1 or rnk > 1

Tags: Database

Similar Questions

  • Record and capture

    I have a SONY EX - 1R camera... How to media from my camera to my computer?  I have pro Prem, do I need another program?  What's his name?  In the early days, this procedure was called recording and capture.  What do I need for this place?

    You really need get a card reader, remove the card from the camera and put it in the card reader connected to the computer. Then, you will be able to do. I doubt prelude can 'see' through the firewire connection.

    Now, management tool of files of your operating system, which is I think "Finder" on a Mac and Explorer (NOT Internet Explorer) on the PC... might be able to 'see' the map of this connection.

    But I think that you really need the card reader.

    Neil

  • Trying to connect a Sony HD player / digital recorder to capture video recordings on DV tape

    Hello, I use Adobe first Pro CS6 and recently I tried to connect a Sony HD player / digital recorder to capture video recordings on DV tape. I am able to control the first tape. (play, ffwd and rwd and stop). Also, when I click on the status button, it also shows online. But I am unable to capture video from the tape that I can see on the digital recorder GV-HD700/1. Help, please.

    http://helpx.Adobe.com/Premiere-Pro/KB/cant-capture-DV-HDV-video.html

    - and more info on Windows http://forums.adobe.com/message/4708997

  • Selection of a specific record from a query


    I have been using a certain set of code to query a database for a Recordset:


    < CFQUERY NAME = "RandPick" DATASOURCE = "MyDB" >
    SELECT ID
    FROM MyTable
    < / cfquery >


    Then, I select randomly 1 number within this number of records:


    < CFSET RND_PICK = plageAleatoire (1, #RandPick.RecordCount #) >


    Finally, I use STARTROWOPTIONAL to display a field from the selected randomly record (what am I on a flash file):


    MyFile.swf? ID = < CFOUTPUT QUERY = "RandPick" StartRowOptional = "" #RND_PICK # "LIGNESMAX ="1"> #PickID # < / CFOUTPUT >"


    The final output might look like this:


    MyFile.swf? ID = 46


    This all works fine, but now I want to do something a little more complicated: I want to take this field value I found (in this case '46') and I want to ask a second table that contains detailed information about ID 46:

    < CFQUERY NAME = "DetailedPickInfo" DATASOURCE = "MyDB" >
    SELECT ID, PickDescription
    OF MySecondTable
    Where ID = ' 46 "
    < / cfquery >


    My problem is that I can't use my STARTROWOPTIONAL trick to incorporate the ID selected in my second request:

    < CFQUERY NAME = "DetailedPickInfo" DATASOURCE = "MyDB" >
    SELECT ID, PickDescription
    OF MySecondTable
    Where ID = < CFOUTPUT QUERY = "RandPick" StartRowOptional = "" #RND_PICK # "LIGNESMAX ="1"> ' #PickID # ' < / CFOUTPUT >"
    < / cfquery >

    Of course, which is not allowed.

    Could someone smart please help me find a way to do this?


    Basically, I'm trying to select a random record from a query and then JOIN the selected record with a second table (where I want to grab a piece of data).

    I understand that my STARTROWOPTIONAL method is a bit of a hack, and there is probably a better way to achieve all this.

    Any help would be appreciated.



    On a related note, I would also like to know a general solution for the selection (for example) the 5th record a query (or the 32nd of a query)

    Thank you

    Instead of doing this:

    MyFile.swf? ID =#PickID #

    Maybe you should set a variable with the value returned by your cfoutput statement, then use this variable as both your setting and picID URL in your second query value. Something like this:

    (Note to Azadi: the value of RND_PICK is not the ID value, but the value of the number of records of the line returned by the first query that contains the ID of interest.)

    Phil

  • remove the last record from the plsql table

    TYPE r_LOOPElement IS RECORD (TermID   NUMBER 
                                          );
    
    TYPE t_LOOPType IS TABLE OF r_LOOPElement INDEX BY BINARY_INTEGER;
    i_CustomerLoop      t_LOOPType ;
    
    i_CustomerLoop(1).TermID=1;
    i_CustomerLoop(2).TermID=2;
    i_CustomerLoop(3).TermID=3;
    Under certain conditions, I need to remove the last record from i_CustomerLoop

    whichi s the best way to do it. because I sometimes get duplicates for TermID in this plsql table.

    Hello

    See [removing items from Collection (DELETE method) | http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/collections.htm#CJAFGFIG]

    Kind regards

  • Record from VCR on the Qosmio F10 - 101 - no video

    I read a lot of topics but I need some information additional regardin my problem

    I myself Qosmio F10-101

    I tried to record from my VCR on computer, I connect the VCR output to monitor using the came with a computer cable laptop but audio is here and no video... no yes no picture, I used windvd creater which came with the laptop, but no picture, I also tried the s-video input and no image appear also as the program windvd unable to give the icons of all the devices connected to the laptop

    What should I do?

    Hello

    I know, you can not save to your VCR using the monitor and S-video, you can use the port fireware "located right next to the PCMCIA port on the left side of the laptop" with windvd.

    Thank you

  • G510 recording from cassette player

    Hi people - looking for clues of what I need to record from an old tape of the bridge to the laptop. Using 3.5 mm male to male plugged in the combo Harbour, but sound does not appear in the recording software. The turntable to cassette has a unique 3.5 mm output auxiliary port. Do I need to use a USB audio adapter? In my view, there was similar problems with that, but couldn't determine a clear answer on a boardsearch. Thank you!

    solved by using a USB 3.5 mm connector. Perfect!

  • Equium L20-197: no not line-in jack - how to record from an external audio source

    Hello

    I am generally very happy with my Equium L20, but I now find some trouble which I assume are from cost reduction. For example, there are no micro shipped, so need to buy one for Voip purposes. And I would like to use this notebook to record from an external audio source, but now to discover that he has no line-in, and it seems that the microphone jack is mono only, even if it was possible to configure the audo map to use this to source line.

    I would be very grateful if anyone has any ideas for a solution workaround, possibly using a USB port.

    TIA
    Keith

    Hello

    What this USB external to the line adapter:
    http://speechtechnology.stores.Yahoo.NET/am--USB--adapter.html

    The adapter is especially useful for laptops or computers that do not have a Line In Jack or is not good sound cards

  • my CD player repeat myself no CD not loaded but there is and it won't record from windows Media... Help

    my CD player repeat myself no CD not loaded but there is and it won't record from windows Media... Help

    Hello

    1. What is the exact error message associated with no CD loaded?

    2. do you mean to say Windows Media center?

    Perform the steps from the link below and see if it helps.

    Your CD or DVD drive is missing or is not recognized by Windows or any other programs (Fixit)

    Important:  This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/

    Hope this information helps.

  • During the Windows installation, I received the following message: Boot Record from CDROM tree research... OK press a key to boot from CD... Error loading operating system

    What is the cause of this error message

    during the installation of the operating system on a single computer, I met the following error message
    "The research tree Boot Record from CDROM... Ok
    Press any key to boot from CD... Error loading operating system"
    What are the causes of this error?

    Hi DavidMuya,

    To stop this message from appearing, follow these steps:

    (a) remove any CD from the drive before you turn on or restart the computer.

    (b) enter the BIOS and change the boot hard drive sequence instead. You will need to change if you plan to boot from a CD in the future.

    Note: Change (CMOS) BIOS/complementary metal oxide semiconductor settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

  • Failed to load existing records from the database on SD card during initialization of the application

    When the Simulator is launched upward, not able to load existing records from the database in the Inbox, so no records appear in the Inbox even though they exist in the database. It seems to be a problem with the SD card in the Simulator - the file system for the SD card is not correctly initialized when the application starts first to the top. During initialization of the application tries to access the SD card by using the following code.

    Boolean

    sdCardPresent = false;

    Enumeration e = FileSystemRegistry.listRoots ();

    If

    (e! = null) { }

    While (e.hasMoreElements ()) {}

    root = (String) e.nextElement ();

    If

    (root.equalsIgnoreCase("SDCard/")) {

    sdCardPresent =

    true;

    }

    }

    }

    sdCardPresent is always set to false and was not able to access existing records from the database. Once the application is initialized and try to create the database, the database is created successfully on the SD card.  The code is the same as above when creating the database and was able to do sdCardPresent = true.

    Is there anyway to register or add the SD card during initialization of the application or any property as System.setProperty overide the path of the default directory value?

    I use BlackBerry 9550 Simulator. I checked the "file system using PC for files from the SD card" and I use "C:\bb\SDCard" for the file system of thr.

    Also tested on the BlackBerry and found the same thing, if the device is hard reset, then it not reading the SD card as well.

    Mark the thread as solved then.

  • When I try to duplicate a layer from one file to the other why appears a window of "displacement"?

    When I try to duplicate a layer from one file to the other why appears a window of "displacement"? What should I do?

    Never seemed this before.

    Thank you

    I can't reproduce this. The layer as you try to duplicate a smart object and there a displacement map? Looks like you might need to reset your preferences.

  • Is it possible to start a record from the source code?

    Hello world!

    I currently use JProfiler in combination with JUnit tests to collect metrics of resource consumption of features in our product.

    A runner for JUnit home starts and stops the recording of JProfiler and analyse recorded data. Then he compares the values to the pre-set limits, and fail the test if they are exceeded.

    Now, I want to change this option to use the flight recorder instead. I found an interesting article explaining how to parse files of .jfr here: using the flight recorder analyzers | Marcus Hirt

    Unfortunately I can not understand how to start and stop a robbery at the record from a JUnit runner, in addition to the use of the jcmd tool.

    Can someone help me?

    Thank you very much

    Tobias

    Hi Tobias,.

    It's pretty trivial in JDK 8 - just use the operations on com.sun.management:type = DiagnosticCommand MBean imitating the way you would use jcmd. Relying on the MBean JMC and corresponding APIs directly is not supported.

    That said, if you wish to register MBeans associated JMC, the following may be useful:

    Import java.lang.management.ManagementFactory;

    Import javax.management.MBeanServer;

    Import javax.management.MalformedObjectNameException;

    Import javax.management.ObjectName;

    public class {RegisterMe}

    private public static final String REGISTER_MBEANS_OPERATION = "registerMBeans"; NON-NLS-$1

    private public static final String CLASS_NAME = "com.sun.management.MissionControl"; NON-NLS-$1

    private public static final String MBEAN_NAME = "com.sun.management:type = MissionControl; NON-NLS-$1

    private public static final ObjectName OBJECT_NAME = createObjectName();

    private public static ObjectName {} createObjectName()

    try {

    return new ObjectName (MBEAN_NAME);

    } catch (MalformedObjectNameException e) {}

    throw new Error ("shouldn't be possible: could not take a new name of object" + MBEAN_NAME); NON-NLS-$1

    }

    }

    public public static void main (String [] args) bird Exception {}

    Ms MBeanServer is ManagementFactory. getPlatformMBeanServer ();

    ms.createMBean (CLASS_NAME, OBJECT_NAME);

    Ms. Invoke (OBJECT_NAME, REGISTER_MBEANS_OPERATION, new Object [0], new String [0]);

    System. .println ("Press enter to exit"); NON-NLS-$1

    System. in. read();

    }

    }

    Kind regards

    Marcus

  • Export of more than 65000 record from oracle's 10 g to Excel

    I try to export more than 65000 record from oracle 10g to Excel, formulas using the report execution as a form of the oracle spreadsheet, but if note the limeted and increase when I found error.

    Gently, I found solution for this error without use package in the database and the directory in the server

    Thank you very much for the cooperation.

    I got a solution to my problem I using webutil and who is as follows:

    DECLARE

    A CURSOR IS

    SELECT column_1, column_2, column_3

    Of

    your table;

    path varchar2 (200);

    IN_FILE CLIENT_TEXT_IO. TYPE_DE_FICHIER;

    BEGIN

    -----------------------------------------------------------------------

    Path: = webutil_file.file_save_dialog (", file_name-online 'Summary': sysdate |'.) CSV ', File_Filter => ' CSV (*.csv) files. (* .csv |') ;

    IF file_name IS NULL

    THEN

    TAKE A BREAK;

    ON THE OTHER

    IN_FILE: = CLIENT_TEXT_IO. FOPEN (PATH: '.) CSV', 'a');

    CLIENT_TEXT_IO. Put_line (IN_FILE, 'title_1; title_2; title_3');

    I'M IN A LOOP

    : HAND. COUNT: = A % ROWCOUNT; -counter

    CLIENT_TEXT_IO. Put_line (IN_FILE, I.column_1 | ';' |) I.column_1 | ';' | I.column_1);

    Synchronize;

    END LOOP;

    CLIENT_TEXT_IO. FCLOSE (IN_FILE);

    IF Form_Success THEN

    END IF;

    END IF;

    END;

    Thanks again

    concerning

    ELIE SAID

  • Duplicate a record

    Is it possible to duplicate a record in Adobe Connect, so I can edit the original version more then once?

    Add the url with out registration /YourNameHere.zip? Download = zip, to bring down the record source files. Then download this zip as a new content file, and you'll have a duplicated the record version.

    Example URL: mycompany.adobeconnect.com/pan82bam7/output/myrecording.zip?download=zip

Maybe you are looking for