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 474855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:19:48+00:00 2026-05-13T00:19:48+00:00

I am trying desperately to create a final table for a production envirnment, however

  • 0

I am trying desperately to create a final table for a production envirnment, however Im having some issues….

I have 2 tables in my database. MyTable has exactly the same format as the other (AnotherTable). AnotherTable has the final value that I’d like to be in MyTable.

I am trying to update MyTable’s gq value to equal the value in the AnotherTable’s gq value. I can no longer use AnotherTable in production, because it is archived data…

Thus my concern. I wrote an update statement (below) that tries to do this. The issue is that I don’t want to update EVERY row of the MyTable each time that this update is called. My 2nd where clause is throwing an “multipart identifier could not be bound” error. Yet I need to have the 2nd where clause there in order to assure myself that I am not updating the entire database worth of information at once.

Please help! I’m still feeling like a newb

UPDATE MyTable
SET MyTable.gq= 
    (select top 1 ANotherTable.GQ as gq 
    from AnotherTable , MyTable
    WHERE CONVERT(VARCHAR(MAX), AnotherTable.UniqueTextField)= MyTable.uniqueVarCharField
    )
WHERE CONVERT(VARCHAR(MAX), AnotherTable. UniqueTextField)
        = MyTable.uniqueVarCharField
  • 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-13T00:19:48+00:00Added an answer on May 13, 2026 at 12:19 am
    UPDATE
        M
    SET
        MyTable.gq = A.gq
    FROM
        MyTable M
        JOIN
        AnotherTable A ON CONVERT(VARCHAR(MAX), A.UniqueTextField)= M.uniqueVarCharField
    

    The JOIN will restrict to where it matches.

    However, you may need further filters in a WHERE clause or more JOIN conditions
    This will still update every row where the tables intersect

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying desperately to draw some images into a view. The view
I'm trying desperately to create a catalog (. In) for my new application in
I have been trying desperately to fix this issue where my ListView items are
I am desperately trying to manually create a JSON-style array in Javascript to send
I'm desperately trying to solve this one. I have a bunch of files stored
I'm desperately trying to create a relatively concise search engine with PHP, mySQL and
I'm desperately trying to save an image to an SQL database and then load
I'm (desperately) trying to create a link from one of my controllers. It should
I am desperately trying to set TextView attributes of cells within a table programmatically
I have a tough problem where I'm desperately trying to find a working solution.

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.