I have a table with 2 columns, Country and Qty. the field country has distinct acronyms of all the countries. Now my job is to replace those acronyms with the actual country name. Now there is another table with acronyms and corresponding country names. I have to take the values from this second table and update the first one where Acronyms match. Please help..
Add a comment |
1 Answer 1
UPDATE q SET country = a.country FROM quantity q JOIN acronym a ON a.acronym = q.country answered Apr 15, 2011 at 13:19
Quassnoi
427k9494 gold badges628628 silver badges623623 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
- The Overflow Blog
-
- Featured on Meta
-
-
-
Linked
Related
Hot Network Questions
- Rumor that Socrates helped Euripides with his plays?
- How to get cash (in Bangkok) with no bank card or passport
- Is every CGWH space sober?
- std::equal_to<void>{}(A1, B1) does not compile, while A1 == B1 compiles in C++26 for unscoped enums?
- Why did West Berlin police sometimes thwart escape attempts from East Berlin?
- Why doesn't leaked confidential information often result in prosecutions for the leaker(s)?
- Difference between VOR approach (with DME required) and VOR DME approach?
- “Why don’t these images look like 4:3 even though the book says 4:3?”
- The Worst Possible Chess Move
- Proving that the set of the quotients of Fibonacci numbers is not dense in the positive reals
- Does lighting weapons on fire do anything?
- After a "zzzzz" buzz, why black screen & no white power indicator light on 4-year-old Dell P2222H monitor?
- What does Ben Aaronovitch mean by “…large wading bird…” in the “Stone and Sky?”
- Is Bayesian ordinal logistic regression (OLR) a better choice than conventional OLR when certain cells have a small number of observations (<10)?
- How to make a wiggle object in Blender 5.0?
- Is it unethical to mention my PhD Thesis in a double blinded review?
- Not Benny but close
- Soft Drink in community fridge keeps disappearing
- Movie about two immortals: a young girl and an older guy. The guy would collect and kill people for the girl to feed on
- Are Linux kernels compiled with UBSAN turned on?
- How do we see the whole observable universe?
- Finding asymptotes of a function defined by a relation of two variables
- Testing binary data for statistical independence
- Was the second copy of the FAT ever used for anything?
lang-sql