I am currently very new to SQL Server and I'm trying to perform a join and add a new column with data to an existing table. My tables are -
1) Enterprise Application Listing (contains Emp name, Emp ID)
2) Enterprise HR listing (contains emp name, emp id, LoginID)
I need to perform a join between the two tables to populate a new column to table 1 with the respective employees LoginID next to their employee ID. This will allow me to use that table for some further analysis. Here is my code that isn't working -
'''UPDATE EnterpriseApplicationListing
INNER
JOIN EnterpriseHRlisting
ON EnterpriseHRlisting.emp id
= EnterpriseApplicationListing.Emp ID
SET EnterpriseApplicationListing.LoginID = EnterpriseHRlisting.LoginID'''