By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,071 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

Update Query

P: 16
Hi guys i am using a update query to replace data in a column in a table the column name is MO_EA and Measure. If MO_EA is Bond Alliance or Bond Alliance CT in need to update the Column MEASURE to be Bond Alliance

I am using the below code but its not changing the Bond Alliance CT to Bond Alliance but is change Bond alliance correctly not sure where i am going wrong

UPDATE [Intake Intermediary] SET Measure = mo_ea
WHERE mo_ea="Bond Alliance" Or mo_ea Like "Bond Alliance*";
Sep 17 '07 #1
Share this Question
Share on Google+
1 Reply


code green
Expert 100+
P: 1,726
If MO_EA is Bond Alliance or Bond Alliance CT in need to update the Column MEASURE to be Bond Alliance
Not quite
Expand|Select|Wrap|Line Numbers
  1. UPDATE [Intake Intermediary] SET Measure = mo_ea
  2. WHERE mo_ea="Bond Alliance" Or mo_ea Like "Bond Alliance*";
Try
Expand|Select|Wrap|Line Numbers
  1. UPDATE [Intake Intermediary] SET Measure = 'Bond Alliance'
  2. WHERE mo_ea LIKE 'Bond Alliance*' ;
Sep 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.