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

  • Home
  • SEARCH
  • 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 8647559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:06:06+00:00 2026-06-12T13:06:06+00:00

When I run this SELECT statement, I receive 642 rows… SELECT * FROM _DevLoadIn

  • 0

When I run this SELECT statement, I receive 642 rows…

SELECT *
FROM _DevLoadIn a
JOIN ArticleCompanyList b ON b.Company = a.Name

When I run this UPDATE statement, only 630 rows are updated…

UPDATE b
SET b.BGCompanyId = a.RelatedId
FROM _DevLoadIn a
JOIN ArticleCompanyList b ON b.Company = a.Name

The JOIN is identical, so how can the number of effected rows be different? Both statements execute without error. I don’t see how this could be possible. Can anyone provide any insight? Am I missing something about how an update/join works?

  • 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-06-12T13:06:07+00:00Added an answer on June 12, 2026 at 1:06 pm

    Best guess is that there are more matches in A for each value of B. So the select statement returns the joined duplicates of A – but the update only updates the row once.

    In other words, the additional values in your select are representations of B (not A).

    —- updated post question edit —–

    Are you sure that your are updating the right value? Make sure that the proper table (A or B) is on the left hand side of the update statement. It appears you’ve edited your question and switched places of what was originally posted. The theory is still the same however.

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

Sidebar

Related Questions

I wish to run an SQL select statement similar to this SELECT * FROM
I run this SQL statement select * from checkins where user_id in (SELECT friend_id
Today I run this select 'exec sp_refreshview N''['+table_schema+'].['+table_name+']''' from information_schema.tables where table_type = 'view'
I run this command : select * from LIST where JCODE = 8 and
If I run this query in Toad: SELECT BANDID, BANDNAME FROM WOODSTOCK WHERE BANDNAME
I have a select statement like this select field1, field2 from table1 What I
When I run the this select '$(''test'')' in SQL Management Studio 2008 it returns
If I try to run this query in SQL Server 2005: SELECT 1 WHERE
I want to do this: run a command capture the output select a line
I've been attempting to adjust a mysql SELECT statement based on input from checkboxes.

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.