Remove Duplicates in string sql AND TAKE THE CORRECT ONE

Good Evening how can i perform this task with ssis  OR TRANSACT SQL? 
I HAVE THESE ROWS WITH THE NEXT DATA, I want to take just the valid one, BUT I HAVE A LOT OF COMBINATIONS AS following names, it can be animals, things or personal names
GABRIEL OBANDO --CORRECT
GABRIEL OVANDO
Gavriel OVANDO
gAbriel OBANDO
GABRIE OBANDO
Gabri OBONDA
MANAGUA --CORRECT
NANAGUA
NAMAGUA
Thanks for the reply.

Well it is not practically possible to identify the correct Name until you have a reference table or you have or knowledge base in
Data Quality services.
The only code which I can provide you is
SELECT DISTINCT NAME
FROM dbo.Test
WHERE NAME = UPPER(NAME) COLLATE SQL_Latin1_General_CP1_CS_AS
This code will check for the upper case name and select them. But it doesn't guarantee finding correct name when spelling is wrong. 
If you have any table from where we can validate data then you can use below code
SELECT DISTINCT Name
FROM dbo.NameTable
WHERE Name IN (SELECT Name FROM dbo.OtherNameTable)

Similar Messages

  • My mac mail is asking for my password and its the correct one, but it still does not want to connect to the mail? how do i fix this?

    It's asking for a password, i'm putting in the correct one and it's still not working. it says mail cant connect to the account "...."
    please help!

    If you've activated 2-step verification, you need to generate an application-specific password in your Google account and enter it instead of the login password you use on the website.

  • How to make a new iCoud account and take the old one off my iPad with the information getting deleted from my iPhone?

    I have one iCloud account and that is on my iPhone. But when I got a iPad I ended up with the same iCloud account that was in my iPhone. I don't like that because if someone sends me a message it goes to my phone and the iPad. How do I make a new iCoud?

    Settings > iCloud, scroll down and hit the delete account button. Any information on that account will be deleted from that device, but it will not be deleted from the cloud or any of the device logged into that account.

  • Group by and take the Max year Record

    Hi,
    I have the data as below:
    A     B     C     D     E
    1     A     ACC     AAA     2008
    1     A     BCC     BBB     2007
    1     A     CCC     CCC     2009
    2     B     ATT     TTT     2004
    2     B     BYY     YYY     2009
    2     B     CZZ     ZZZ     2006
    Here I have to eliminate duplicates using A,B and take the record with max(E)
    So output should be:
    A     B     C     D     E
    1     A     CCC     CCC     2009
    2     B     BYY     YYY     2009
    Please help me how i can do this.
    Thanks in advance
    Mahesh

    Slightly shorter:
    SQL> with t as (
      2   select 1 a, 'A' b, 'ACC' c, 'AAA' d, '2008' e from dual union all
      3   select 1, 'A', 'BCC', 'BBB', '2007' from dual union all
      4   select 1, 'A', 'CCC', 'CCC', '2009' from dual union all
      5   select 2, 'B', 'ATT', 'TTT', '2004' from dual union all
      6   select 2, 'B', 'BYY', 'YYY', '2009' from dual union all
      7   select 2, 'B', 'CZZ', 'ZZZ', '2006 ' from dual
      8  )
      9  --
    10  --
    11  select a,
    12         max(b) keep (dense_rank last order by e) b,
    13         max(c) keep (dense_rank last order by e) c,
    14         max(d) keep (dense_rank last order by e) d,
    15         max(e) e
    16    from t
    17  group by a
    18  /
             A B C   D   E
             1 A CCC CCC 2009
             2 B BYY YYY 2009
    2 rijen zijn geselecteerd.Regards,
    Rob.

  • How to execute a string formula and assign the result to a number field

    How to execute a string formula and assign the result to a number field
    Hi,
    we have a function that returns a string like this:
    '(45+22)*78/23'
    After we should calculate this string and assign the value to a numeric block field
    Example:
    k number(16,3);
    k:=fun1('(45+22)*78/23'); where fun1 execute and translate to number the string.
    Does exist a function like fun1 ??
    How can we do ?
    Regards

    Hello,
    this is the code that does the job:
    SQL> set serveroutput on
    SQL> DECLARE
    2 ch VARCHAR2(20) :='22+10' ;
    3 i NUMBER ;
    4 BEGIN
    5 EXECUTE IMMEDIATE 'select ' || ch || ' from dual' INTO i;
    6 dbms_output.put_line ('i = ' || TO_CHAR(i));
    7 END ;
    8 /
    i = 32
    Procédure PL/SQL terminée avec succès.
    SQL>
    just you have to do is to create a small stored function that take the string to calculate and return the number result
    Francois

  • I am already customer and want to upgrade and take the offer of $29.99/month for the complete CS for existing customers (which I qualify for) but when I try 'BUY' - it keeps sending me to this forum?? How do I get the $29.99/month deal?

    I am already customer and want to upgrade and take the offer of $29.99/month for the complete CS for existing customers (which I qualify for) but when I try 'BUY' - it keeps sending me to this forum?? How do I get the $29.99/month deal?

    Hi Bev,
    Thanks for the the email - I understand now.
    I would just like to ask another question with regards to my new order for complete Creative Cloud which you suggested. I have now pre-paid for a full year but I’m not
    sure when I can start downloading the other APPS as they don’t seem to be updating on my current Creative Cloud account app display. It still shows my old configuration
    of products (i.e. Photoshop etc) and my ‘activity stream’ relates back to 9 days ago.
    Please let me know how to get my new order activated.
    Thanks
    Kevin Bartley
    [personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731]
    [This is an open forum, not Adobe support, please do not post personal information]
    [If you are posting using email, please turn your 'sig file' function OFF for posting]

  • How do I remove duplicate pictures in iPhoto and in folders?

    I have 12000 pictures and duplicate annihilator is so slow and can only be used fopr 500 pictures. How do I remove duplicates pictures i iPhoto and in all the original folders?

    What do you mean by "in all the original folders" ?
    If you purchase and registers Duplicate Annihilator then the 500 photo limit is removed.
    Regards
    TD

  • Can I use my new 4gs on a line different then the one it was upgraded on. I have many phones on my account. I am not eligible for upgrade but I had to buy two new phones for others. Can I give one of them my old iPhone 4 and take the 4gs.?

    I have many phones on my account. I am not eligible for upgrade but I had to buy two new phones for others. Can I give one of them my old iPhone 4 and take the 4gs? Thinking maybe switch sim cards? Thanks in advance for any help

    Yes.
    Just call your provider and tell them what you want and they will help you get it done properly.

  • How do I remove an incorrect apple ID from an iPad and replace it with the correct one?

    How can I remove an incorrect Apple ID from my ipad and replace it with the correct one?

    Hello Shy guy,
    You can try this:
    1. Go to the iTunes Store or App Store
    2. Scroll down, there you will see Apple ID: "your email" (below Redeem and Send Gift)
    3. Tap on that button
    4. Tap on Sign Out
    Now you should be able to use another Apple ID.
    Cedric

  • My Iphone 4s automatically synced when I started ITunes. When it did this it saved all of my pictures on my computer to my phone. How do I reverse this and take the pictures back off of my iPhone?

    My Iphone 4s automatically synced when I started ITunes. When it did this it saved all of my pictures on my computer to my phone. How do I reverse this and take the pictures back off of my iPhone?

    Yeah, my iPhone 4S sometimes manages to connect to wifi for about 10 minutes now. I think there is a problem related with the antenna because when the phone heats up, the WIFI stops working. I had a similar experience with my older iPhone 4S which I bought from the U.S.A. (unlocked version) but after a couple of days, WIFI icon grayed out and I wasn't able to switch it on and off. Now the phone I'm using was bought in Turkey from a local carrier, (it's not locked I suppose) I'm planning on upgrading to an iPhone 6 and I will try to get my 4S repaired. I hope it is something related with software rather than hardware. Because a friend of mine sent his phone to the local Apple store to be fixed, they sent the phone back claiming that they had repaired it. But in about 2 days, the phone shut itself down and never turned off back again lol. I don't want to experience the same thing. But anyway, thanks for your answer. At least now I know that I'm not the only one that has this problem .

  • Tool for the coding of pl/sql and drawing the flow chart

    dear sir,
    please kindly recommend one tool for the coding, debuging the
    pl/sql and drawing the flow chart.
    thanks

    Hello,
    You can use Tools Provided by KeepTool It includes,
    1. ER Diagrammer
    2. SQL Editior
    3. HORA,DBA Tool
    4. Pl/SQl Debugger
    www. keeptool.com
    www.keeptool.de
    Adi

  • I discovered a Lacuna in the system and I want to talk to Responsible to tell him and take the bonus

    I discovered a Lacuna in the system and I want to talk to Responsible to tell him and take the bonus

    What?
    The eagle flies at midnight?

  • If someone finds an iphone and its being tracked...then if such person restores it and takes the previous icloud account off, can the phone still be tracked?

    If someone finds an iphone and its being tracked...then if such person restores it and takes the previous icloud account off, can the phone still be tracked?

    In what regard? Restrictions would not impede in iCloud. All they do are allow certain changes (like age-appropriate content on App Store to be changed), and to prevent some apps from being shown on the device if they aren't going to be used, for example, I have restrictions active on my iPhone with the Youtube App turned off so it doesn't show on my home screen, and youtube links don't open into it (i find the application clunky and prefer the website).
    If the device is restored; Anything put in place by restrictions and the prior user are renderred null as the settings get completely erased.

  • I have a power mac and the hard drive is about to die, i have a new hard drive to install, i know how to remove and put the old in the second space and load the new one, then what...when do reinstall the OS and transfer data from old drive

    I have a power mac, the hard drive is struggling, I have a new hard drive ready to install, after I pull the old one and put the new one it's place and place the old one in the next slot ready to transfer data....how do I start this next step.  Do I down load OS, and go to utililities...please just a step by step after hard drives in position.

    Hi Susan, you must have a Mac Pro, Powermacs cannot run 10.6.x
    Anyway, once you Install the new drive, you likely must Format it...
    How to format your disks...
    http://www.kenstone.net/fcp_homepage/partitioning_tiger.html
    (To Install OSX on an IntelMac the Drive it needs the GUID Partitioning scheme mentioned at the bottom.)
    Thanks to Pondini, Formatting,  Partitioning, Verifying,  and  Repairing  Disks...
    http://web.me.com/pondini/AppleTips/DU.html
    Then Install the OS & on first boot of the new install, after a step or two, avail yourself of Migration Assistant & Migrate everything.

  • TS2988 I had to reset my phone and I only have one of my ringtones I had 4.. Why'd it delete 3 and not the last one and now I can't get em back without paying for them again!!! What the **** is up with that??

    I had to reset my phone and I only have one of my ringtones I had 4.. Why'd it delete 3 and not the last one and now I can't get em back without paying for them again!!! What the **** is up with that??

    Yup, your question and Diane's answer helped me also. Tho' I had had problems before getting into the iTunes store I always managed to find a way. Today they had me blocked cold with the "Update to 10" advert no matter what I did. Other questioners are being told, incorrectly as it turns out, that they have to update their OS to accomodate iTunes 10 and upgrade to iTunes 10. I did the download which did not take up much more room on my crowded old hard drive and now I'm back in business.

Maybe you are looking for

  • Itunes error when downloading album err=-100008

    Hello.. I almost finished downloading a well anticipated album. All songs downloaded except 1. I keep getting the error above, and when i check purchases it starts but then continues to give me the msg error . Unable to finish download of Song, the f

  • Transporting Tablespaces

    All Experts I am running oracle 10.2.0.1 on 64bit Microsoft server 2003. I want change database server and trying to transport tableces from one database server to another. I have to first create users on new database or not what about users's privil

  • Portal Transaction iView Button disabled

    Hello expert, I wish know why the button on menu of Pop-Up Portal are disabled. I created a SAP Portal Transaction iView: Image: http://img718.imageshack.us/img718/7001/helpsdn.jpg And the button NEW WINDOW is disabled, but if I put on the field wher

  • Release strategy & EBAN for project systems, purchasing

    Hi We have 2 different scenarios for which we use same account assignment category "Z". 1) Purchase Requisitions for capital expenses (Account assignment category "Z") - this is part of project systems requisition attached to WBS elements 2) Purchase

  • Customer (FD01,FD02) Enhancement

    Hi, We need to enhance the "Control Data" Tab with additional user fields. How can I do that? Is there a BTE Event that can help? Thanks a lot, Eyal.