Jump to content

Sql Question Plz Help


Darling999

Recommended Posts

I have two tables A and B

 

A                          B

Name                   Name

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

RingSouth            Ring South or Ring.South or Ring_South (One of them wuld be in the B Table field value)

                             Ringsouth_Voice

 

Now My Question is when there is a Match from Table A to Table B I mean Ringsouth = Ring South or Ring.South or Ring_South

 

I need to Update Table A with the Table B Value i.e

 

Output:

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

 

B.Name                                                                                  A.Name

----------                 Then  table A should get the update        -------------

Ring South                                                                            Ring South

 

B.Name                                                                                  A.Name

----------                 Then  table A should get the update        -------------

Ring.South                                                                            Ring.South

 

B.Name                                                                                  A.Name

----------                 Then  table A should get the update        -------------

Ring_South                                                                            Ring_South

 

Any Help on this?

Link to comment
Share on other sites

UPDATE A SET TABLEA_COLUMN = BCOLUMN
FROM TABLEA A
JOIN TABLEB B
ON BCOLUMN = A COLUMN
WHERE NEE ISTAM

 

bemmi-pushing.gif?1403646236

brahmi%20laugh.gifAnthaa Direct ayitey neney raaseyseytodini kadhaa Baa...

Link to comment
Share on other sites

ite nee question naku ardam kale leda naak english sadavadam radu bemmi-pushing.gif?1403646236

UPDATE a
SET
Name = b.Name
FROM A a
JOIN B b
ON REPLACE
(REPLACE(REPLACE(b.Name,' ',''),'.',''),'_','') = a.Name

Link to comment
Share on other sites

orini banda pada 1st post lo di epudu ardam iyindi brahmi%20laugh.gif

UPDATE a
SET
Name = b.Name
FROM A a
JOIN B b
ON REPLACE
(REPLACE(REPLACE(b.Name,' ',''),'.',''),'_','') = a.Name

 

Link to comment
Share on other sites

aa special symbols ala replace replace replace rayakunda oka user defined function rayi to remove all special characters based on ascii so u dont have to worry in the future if there are new symbols bemmi-pushing.gif?1403646236

Link to comment
Share on other sites

aa special symbols ala replace replace replace rayakunda oka user defined function rayi to remove all special characters based on ascii so u dont have to worry in the future if there are new symbols bemmi-pushing.gif?1403646236

Yeah checlk cehyyali adi oka sari

Link to comment
Share on other sites

×
×
  • Create New...