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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:27:33+00:00 2026-05-16T12:27:33+00:00

2 databases QF AND TK QF has the following: Imagine you have a table

  • 0

2 databases QF AND TK

QF has the following:

Imagine you have a table called FunctionalGroup with this data:

FunctionalGroupID | FunctionalGroup
1                    Engineering
2                    Purchasing

And a table that was a set of login’s with a functionalgroupID to reference the group the person is in…

LoginID | FunctionalGroupID | Login
1                  1           Jon
2                  1           Joe
3                  2           Jane

So Jon and Joe are engineering while Jane is purchasing..simple enough

Now there is another database TK.

TK has the following table Login with something to this effect:

Login | FunctionalGroupID
Jon          Purchasing
Joe          Purchasing
Jane         Purchasing

Notice how Jon and Joe in this database are now part of the purchasing group…But notice how this field is the text field and no ID. So what I want to do is use this table as the master data source and update the QF table such that the logins table from the QF now looks like this:

LoginID | FunctionalGroupID | Login
1                  2           Jon
2                  2           Joe
3                  2           Jane

That is update this table to make Jon and Joe part of the purchasing group by setting their functionalgroupid = 2. Because 2 means purchasing.

I tried this:

UPDATE
Login 
SET Login.FunctionalGroupID = FunctionalGroup.FunctionalGroupID
FROM Login INNER JOIN
TKKCommonData.dbo.Login lz
ON lz.Login = Login.Login
AND lz.FunctionalGroupID = FunctionalGroup.FunctionalGroup

But I get an error:

Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "FunctionalGroup.FunctionalGroup" could not be bound.

This seems so easy but Im just not sure how to write the update statement. Im just looking to join the tables by the Login (which is the users name) and then by the Functionalgroup names.

I even tried this EDIT per Jay’s answer with same error message

UPDATE
QuikFix.dbo.Login 
SET QuikFix.dbo.Login.FunctionalGroupID = QuikFix.dbo.FunctionalGroup.FunctionalGroupID
FROM QuikFix.dbo.Login INNER JOIN
TKKCommonData.dbo.Login 
ON TKKCommonData.dbo.Login.Login = QuikFix.dbo.Login.Login
AND TKKCommonData.dbo.Login.FunctionalGroupID = QuikFix.dbo.FunctionalGroup.FunctionalGroup
WHERE TKKCommonData.dbo.Login.LoginID= 101
  • 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-16T12:27:34+00:00Added an answer on May 16, 2026 at 12:27 pm

    You need an additional INNER JOIN:

    UPDATE Login  
    SET
        Login.FunctionalGroupID = FunctionalGroup.FunctionalGroupID 
    FROM Login
        INNER JOIN TKKCommonData.dbo.Login lz
            ON lz.Login = Login.Login 
        INNER JOIN FunctionalGroup
            ON lz.FunctionalGroupID = FunctionalGroup.FunctionalGroup 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have access to an Oracle server that has some databases that I would
I inherited MYSQL database that has lots of tables with data like CREATE TABLE
I have a database that has lots of data and is all neat, normalized
My company has a number of relatively small Access databases (2-5MB) that control our
I have some old rrdtool databases, for which the exact creation recipe has long
I have a database that has a vessel pressure that is trended every 30
I have several databases that have tables with the same name. I mean, I
My database schema has a 'locked' setting meaning that the entry can not be
Suppose a database table has a column Name which is defined as key for
I have question regarding the storage of large amount of data. The situation is

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.