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
- Why can’t I delete files from USB drive?
- Is it possible to define what is a representative sample at the early stage of research?
- Why does the p-value increase when I add more observations to my t-test?
- To what extent does Israel's strategy to deflect international investigations actually work?
- What is the correct way to deal with circular PCB ground planes
- Advice on seculars "changing meanings" to allow for sin
- Why did West Berlin police sometimes thwart escape attempts from East Berlin?
- POSIX sh alternative to Bash's [[ ]]
- Do NPCs have Will in Chuubo's?
- Did Microsoft Windows popularize Klondike solitaire?
- Dactylic hexameter composition feedback
- how to shade an region bounded by curves
- Was 2023 the first time a person in California was killed in a black bear attack?
- Is there any liability associated with chatbots that pretend to be human?
- Does the content of LUKS disks become encrypted again at unmount or at power-off
- Is this lighting bracket allowed and if not how best to fix it?
- Why does Lu Xun's 《祝福》use 莱 instead of 菜?
- Is it possible for a Mercury-type planet to form in lieu of an asteroid belt where one would normally form?
- Trying to identify an Analog magazine story where human music contains coded a alien message
- Plane accelerate in stationary air vs stationary plane in accelerating airflow?
- Ioniq 6 "Oil Fortifier"
- man: do not use other window
- Hyundai Sonata 2007 replacing low beam bulb parts stuck in connector - help appreciated
- How to parse a Library of Congress classification record prefixed with LCSH?
lang-sql