Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. UPDATE Clients AS T1
  2.  
  3. INNER JOIN
  4.  
  5. (SELECT DISTINCT
  6. Clients.ID_Client AS FED,
  7. Clients.Name,
  8. SecondTable.Client_Name,
  9. SecondTable.ABI_Code AS ABI
  10.  
  11. FROM SecondTable INNER JOIN Clients ON SecondTable.FieldToUpdate=Clients.Name) AS T2
  12.  
  13. SET T1.FieldToUpdate = T2.FED
  14. where T1.ABI_Code =T2. ABI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement