Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7564881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:00:20+00:00 2026-05-30T14:00:20+00:00

I have a table, tbl_english, containing the column word. I also have a table,

  • 0

I have a table, tbl_english, containing the column “word”.
I also have a table, tbl_translation, containing the columns “german_word” and “english_word”.

tbl_translation is supposed to be a lookup table to see if there are any german words in tbl_english’ column “word”

So what I want to do is;

For each tbl_english.word, iterate through
tbl_translation.german_word and look for matching value. If match
exists, update tbl_english.word with the value in
tbl_translation.english_word from current row in tbl_translation

The intention is to replace any rogue german words existing in tbl_english with their correct translation from the lookup table tbl_translation

So far what I have come up with is this;

UPDATE tbl_english SET word = 
    (SELECT english_word FROM tbl_translation 
        WHERE tbl_english.word = german_word) 
    WHERE word IN
        (SELECT german_word FROM tbl_translation
            WHERE tbl_english.word = german_word )

However, this fails when there are multiple instances of the same or different words resulting from the first sub-select. Is there a simple way to solve the problem?

Example:

tbl_english contains;
Mädchen
Frau
Boy
Giraffe
Baum

tbl_translation contains (german, english);
Mädchen, Female
Frau, Female

So in tbl_english I would like to see the following result;
Female
Female
Boy
Giraffe
Baum

Edit: Not every word in tbl_english will have a reference row in the translation table.
Edit2: Added example

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:00:22+00:00Added an answer on May 30, 2026 at 2:00 pm
    UPDATE e
      SET word = t.english_word
      FROM dbo.tbl_english AS e
      INNER JOIN dbo.tbl_translation AS t
      ON e.word = t.german_word
      WHERE e.word <> t.english_word;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have table with 3 columns A B C. I want to select *
I have a lookup table Tbl_UserType_value_lookup: UserTypeID |AllowedValue ------------------------- 1 |x 1 |y 2
I have a table named tbl.Products , which has a column named articlenumber and
I have a table tbl with 3 columns imp_col, data1, data2 where imp_col's type
I already have a table with 3 column (Id bigint, Title nvarchar(450), Description nvarchar(MAX))
Let's say I have a table tbl with columns id and title . I
I have a table with several hundred million rows. One of the columns is
I have a table called tbl_AllowedIpRange with the columns: ipFrom | ipTo I have
i have 1 table called tbl_Run and only 1 column called wo .the question
i have a table called tbl_products and i want to combine the columns start_date

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.