How to extend the ralations duplicate?

Hi all
I tableA (code, street_name, street_number, att1, att2) and theres duplicate code, street_name and street_numbers.
I have found using code duplication:
Select code from tableA where code in (select code from tableA group by code having count (*) > 1)
but at the same time, the code has been changed and I have other code and the old street_name and the old street_number
so tableA now have:
oldCODE, street_name, street_number and newCODE, street_name, street_number - double street_name and street_number!.
tableA have 7000 files.
Question how is this double street_name and street_number with this different code (old and new CODE)?
Thanks in advance
Gordan

Published by: useruseruser on August 25, 2008 09:48

Here is a test:

SQL> with tbl as
  2  (select 1 id, 'str1' str, 12 nb from dual union all
  3   select 2 id, 'str1' str, 12 nb from dual union all
  4   select 3 id, 'str1' str, 12 nb from dual union all
  5   select 4 id, 'str2' str, 13 nb from dual union all
  6   select 5 id, 'str3' str, 14 nb from dual)
  7  select str, nb, max(ltrim(sys_connect_by_path(id,' - '),' -')) keep (dense_rank last order by length(sys_connect_by_path(id,' - ')))dup_id
  8  from   tbl
  9  connect by prior id < id and prior str = str and prior nb = nb
 10  group by str, nb
 11  having count(*)>1;

STR          NB DUP_ID
---- ---------- --------------------------------------------------------------------------------
str1         12 1 - 2 - 3

SQL>

However, not sure how to distinguish the old code and the new.

Nicolas.

Tags: Database

Similar Questions

  • Qosmio X 500-165 - how to extend the C drive?

    Just bought the Qosmio X 500-165. Does anyone know how to extend the C drive, I get a sign that it is almost full, despite installing all my programs on the partitioned disks that I created? I need to uninstall the software installed by toshiba?

    Any suggestions gratefully received. Thank you

    Hey Buddy,

    The 500-165 X is equipped with 64 GB SSD and HDD of 750 GB. I don t know the exact partition structure but I assume that Windows is installed on the SSD which is the C drive and HARD drive is your second drive D.

    I recommend to move all files such as photos, videos, music, drive D to improve disk space on c. usually 64 GB SSD should be sufficient for all applications because Windows 7 needs only 20 GB.

    Also, try to reduce the system restore points and delete temporary folders. CCleaner can also help you to clean your system. :)

  • How to extend the duration of the appointment will be held in my Planner

    How to extend the duration of the appointment will be held in my Planner

    Hi Roger_King,

    I suggest you to return the item and check if it helps.

    Schtasks

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/Schtasks.mspx?mfr=true

  • How to extend the time that your computer stays on without activity

    How to extend the time that your computer stays on without activity?

    How to extend the time that your computer stays on without activity?

    Start button > in the search box, type power options > press the Enter key > left column > click on choose when turn off display > selections for battery and plugged inare. Click on the pointer, and you can choose how long. It may be 1 minute forever. Take that seek you. > click save changes when done. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • make a slideshow in movie maker, how to extend the duration of a photo of a single image

    make a slideshow in movie maker, how to extend the time image (time peak is seen) a single image that is different from the default time?

    I posted the Live Movie Maker tutorial because
    your question is posted in a forum for Windows 7.

    In Vista Movie Maker 6... There are three ways
    to change the duration of a specific picture that
    is already on the timeline.

    FWIW... the change of setting to: Tools / Options /.
    Advanced... tab applies only to the added clips
    to the timeline * after * you change the setting.

    (1) you can increase or decrease the duration
    a specific image by adding an effect:

    'Speed Up, Double' cuts the duration of half.

    "Slow Down, half ' double life.

    These effects can be added up to six times.

    (2) for the timeline... you can change the
    duration for each clip manually. Move your
    pointer on on the edge of an element up to the
    you see a double arrow. Now, drag the
    double red arrow... you will see a ToolTip that
    Watch the evolution of life.

    (3) the term may photo on the timeline
    easily be doubled by simply adding another
    an instance of the same photo next to him.

  • How to extend the duration of sleep

    There are times when I want to use my tablet as a music player.  However, the sleep function allows only a 30-minute delay.  How to extend the duration of sleep?  My tablet is:

    HP7

    Andoid version - 4.1.2

    software version-P702T_V01_24_130919

    hardware version - PVT

    IFWI version - 06.09

    Kernel version + 3.0.34

    You need to enable developer mode. There is an option in the developer options , called "stay awake" otherwise, 30 minutes is available for you to choose for sleep to occur in the normal options available in configurations for as long. Don't forget to remove the tick in the box stay awake when you are finished listening to music or your slate will run battery pretty quickly, especially in performance mode to maximize the opportunities for energy savings.

    How to enable developer mode

    In settings, click tablet PC. Find the Build number. Tap it seven times. (yes I know, it's a bit like ' he is no place like home "a well-known film ) Developer mode is now enabled, and you will see a new section on the left called options of developer. Be careful with the options. Use only the options you really need.

  • How to extend the guarantee

    How to extend the guarantee

    Hey vette.

    Can you give me some information on your computer? Include also the purchase date and other information. In the meantime, you can check the warranty currently status here: http://goo.gl/HWLfZ

    Thank you
    Sean

  • How to extend the display fron Windows 8.1 to another laptop Windows 7

    How to extend the display fron Windows 8.1 to another laptop with Windows 7, without having to invest in additional software.

    Hello Navin,

    Thank you for visiting Microsoft Community.

    According to the description, I understand that you want to know how to extend Windows 8.1 display to another laptop with Windows 7.

    Certainly, I understand your concern and will try my best to help you.

    I want to provide you with the information that so there is no solution from Microsoft to do this. However, there are third-party software that could help you extend the display from one computer to the other. But Microsoft does not recommend that.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    I hope this information is useful.

    Please let us know if you need more help, we will be happy to help you.

    Thank you.

  • How to decrease the speed "duplicate"?

    How to decrease the speed "duplicate"? I use this script, but my eth0 show me 100 MB/s: run {allocate channel ch1 device type disk rate 10 m;}   allocate channel rates auxiliary ach1 devices type disc 10 m;   target database duplicate to dbtest02 of the active database. } What I did wrong?

    A transfer on the network will use all of the bandwidth is available. If you want to limit the consumption of bandwidth, check with the network team, if they can implement all controls using intermediate switches between the two servers.

    Hemant K Collette

  • MacBook Air how to extend the timer

    I listen to a tape of meditation 1 hour and 14 minutes and it stops after an hour

    How can I extend the timer to last more then 60 minutes? It's a Mac Book Air 13

    Not sure about "Timer" you mentioned, even if your MacBook Air does not work in mode "sleep" more than 1 hour of system preferences > energy saver, and then set computer sleep more than 1 hour.

  • How to extend the Airport Express Wireless Network at guesthouse?

    Currently have an Airport Express (fairly new, updated). Centrally located in my house.

    I have a guest house which has a garage and a front door door aside.

    Guest House is about 56 feet from the main house.

    I can get the wifi outside, (4 bars) up to 3 feet of the guesthouse before he gets spotty or the connection is lost.

    If I go into the Guest House, I see the other neighbors networks, but not my own. (Signals strong, 4 bars).

    My question is: How can I extend the range of my network wireless in my guest house? If I need another Terminal Airport Express?

    Where would he put regarding my 1st Express?

    I would appreciate comments, thank you.

    As a first step, it may be good idea to test the different locations of the existing base station. Temporarily connect an Ethernet for inbound Internet cable. Try moving the base station to various locations. Avoid stray objects/structures (Wi - Fi and Bluetooth: potential sources of interference wireless - Apple Support).

    If necessary, an extension of the network (Wi - Fi base stations: extend the reach of your network wireless by adding additional base stations Wi - Fi - Apple Suppo...) are possible. The best way to do it would be through an Ethernet connection to the extended base station (placed in the main, if possible). Alternatively, you can test whether a link of powerline network adapter could be used instead of an Ethernet cable to the extended base station.

  • How to extend the range of my Airport Extreme Base Station (802. 11 a, c) using a relay of Airport Express (802.11n).  Airport Utility (V635.2) says that this version does not support the relay.  That is what it is?

    How can I extend the range of my Airport Extreme (802. 11 a, c) using an Airport Express (802.11n) point.  Airport (V635.2) utility does not recognize the Express on its screen?  I have to buy equipment?  I'm on a MacPro OS X 10.10.5.  Thank you.

    AirPort utility that ships with OS X 10.10.5 supports base stations as 802.11ac & 802.11n AirPort. It should be able to configure both of your base stations for a scope (wireless connected base stations) or roaming types (base station connected Ethernet) wireless networks.

    When you initially configure the Wan, it helps to keep the two base stations in the same room. Once configured, you can move the base station that extend to the desired location. The important key is that the final positioning of the station that extends the base must be understood that it's to expand in order to maintain sufficient bandwidth to the station remotely for clients from network connected. Please check the following airport user tip for more details.

  • Goes on a trip - how to extend the battery life of my computer?

    So, I'm going on a trip soon on a bus and I want to be able to bring my computer, but it is running out of battery very fast. How can I save energy?

    You could:

    Looking out the window or talk to your neighbor instead of using the computer in the bus.

    Leave your computer at home.

    Buy a new battery.

    Take the power supply with you in case the bus has power ports for each or a few pairs of seats.

    See...

    Extend the life of the battery: battery power on laptops, laptops and netbooks
       http://www.Microsoft.com/atwork/maintenance/battery.aspx

  • How to extend the volume so that the disk space is increased.

    original title: putting a space in the Documents folder

    Hi I want to increase the size of th of the folder my documents. I have an unallocated partition or whatever his name and my drive C is too small. I want to increase the forlder increased also soze documents. Windows xp dell is the system

    All I want is to use the unallocated space so that the part is given to my C and then I have a D drive as well thanks for reading.

    Hi Jack_76,
     
    See the methods mentioned below and check:
     
    Note: Back up all important data before performing the steps in the following methods.
     
    Method 1:
    How to extend a data volume in Windows Server 2003, Windows XP, in Windows 2000 and in Windows Server 2008
     
    Method 2:
    See How to extend a Simple or a split Volume at the following link.
    How to use disk management to configure dynamic disks in Windows XP
     
    For reference:
    To extend a volume single or split
     
    Hope this information helps.
  • How to extend the volume of data in the Windows XP machine?

    Victorinox original title: space Partition:

    My C drive is almost full (110 MB only free) but my G, E, H readers have at least 23 GB of free space in each of them. SO can I do anything to divide the sapce. I know that to do something with the start menu. Can u direct me giving the steps.

    I can leave 16 GB free space in each drive and have drive C with 21 more GB of space.

    Hi AnirudhRamesh,

    You can use diskpart.exe to extend a data volume in Windows XP.
    For more information, see this link:

    How to extend a data volume in Windows Server 2003, Windows XP, in Windows 2000 and in Windows Server 2008

    http://support.Microsoft.com/kb/325590

    Note: Before moving to take backup of any important data before making changes to the system.

    Hope the helps of information.

    Please post back and we do know.

Maybe you are looking for

  • How can I delete temporary files?

    When you click START, then RUN, I type temp and delete the files on all computers in my office.  Almost every one of them now has a list of .tmp files that are unable to remove.  They all start with LAE and range from LAE9F.tmp, LAE13A etc...   There

  • Lost 13 Alienware command center

    I recently reset my Alienware 13 and I lost my Center of command and Alienware FX. I was wondering if there is a download so I can get back them on my computer.

  • Order to activation

    Hello. I lost my hard drive with a license of windows 7 OEM eMachines. The drive was no longer recognized by the PC, but I managed to connect to the outside like USB and data recovery. Now, I've used a windows 7 installation disc and activation I ent

  • JDE 4.7 debugger stops is no longer at the breakpoints

    Anyone has an idea why my debugger stops is no longer at a time of break I put ANYWHERE?

  • null in DBA_AUDIT_SESSION username

    Oracle 11.2.0.3 Std Ed aOracle Linux 64-bit 5.6SQL > SELECT nvl(USERNAME,'**') USER name,.2 OS_USERNAME,3 USERHOST,4 EXTENDED_TIMESTAMP5 OF SYS. DBA_AUDIT_SESSION6. WHERE returncode! = 07 and timestamp > trunc (sysdate - 5)8 ORDER BY extended_timesta