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

Ask A Question

Stats

  • Questions 263k
  • Answers 263k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If the issue says Status: Open then it hasn't been… May 13, 2026 at 12:05 pm
  • Editorial Team
    Editorial Team added an answer See this to understand Main method signature options. May 13, 2026 at 12:05 pm
  • Editorial Team
    Editorial Team added an answer Sounds like you're looking for the cartesian product: SELECT c.CID… May 13, 2026 at 12:05 pm

Related Questions

Until the preview release yesterday of ASP.NET MVC I had been desperately needing a
I've been trying desperately to get my application (15 C# dlls and 1 C++/CLI
I've got a Sony network camera (SNC-RZ25N) that I am trying desperately to get
I am desperately trying to use LinqKits PredicateBuilder to allow the user to enter

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.