I have two tables A and B
table A with 2 columns row_id , rate
e.g of contents
table A:
row_id rate
1 1.3
2 1.6
table B with same columns
e.g of contents
table B:
row_id rate
1 2.0
2 2.3
I want to update A.rate with the value from table B with the row_id matching up so I want results like this
table A:
row_id rate
1 2.0
2 2.3
this is my update query
update A
set A.rate = ( select B.rate
from B
where A.row_id = B.row_id
and A.rate != B.rate )
I am getting error Missing Delimiter
Does anyone know if my update statement is correct or I should use something else?
I appreciate your time
Pearl Pin Harry
Senior Software Engineer
Radcliffe Datahorse Inc.
105 Commerce Valley Drive West, Suite 510
Markham, Ontario L3T 7W3
Tel: 905.771.5400 ext 336
Fax: 905.771.6604
www.radcliffedatahorse.com
- Newbie question: creating a user Zsolt Almasi
- RE: Newbie question: creati... Zabach, Elke
- Re: Newbie question: cr... Marcus Berglund <[EMAIL PROTECTED]>
- [GUIDE][USER][DBMCL... Massimo Renzi
- [USER][USERGROU... Massimo Renzi
- Re: Help w... Pearl PinHarry/Radsystems
- Re: He... Detlef Schulze
- Re: Newbie question... Andreas Ernst
- RE: Newbie question: creati... Zabach, Elke
- RE: Newbie question: creati... Schroeder, Alexander
- RE: Newbie question: cr... Marcus Berglund
- RE: Newbie question... Marcus Berglund
- RE: Newbie ques... Marcus Berglund
- RE: Newbie question: creati... Stausberg, Markus
- RE: Newbie question: creati... Schroeder, Alexander
