Avatar of Aleks
Aleks
Flag for United States of America asked on

Update the value of table B with value of table A tables inner join

i have table A:  This is how I query it

SELECT ParamId ,
       ParamFirmId ,
       ParamUserId ,
       ParamName ,
       ParamValue FROM dbo.ParametersUsers
WHERE ParamName = qnrsview

Open in new window


Table B is called "Userlogin"

I need to update the field "qnrsview" from the users table with the value of ParametersUsers  table
ParametersUsers.ParamUserId  = Userslogin.userid

I hope I made some sense.  Userlogin.qnrsview should end up with the same value as ParametersUsers value where ParametersUsers  .ParamUserId = Userlogin.Userid
Microsoft SQL ServerWeb DevelopmentASPSQL

Avatar of undefined
Last Comment
Aleks

8/22/2022 - Mon
Wayne Barron

ASP Classic
ASP.NET
Aleks

ASKER
The update should be done by running a query. I am using  SQL 2012
ASKER CERTIFIED SOLUTION
Nakul Vachhrajani

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Aleks

ASKER
That did the trick. Thank you.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Wayne Barron

@amucinobluedot
Glad that you got this resolved.
To be honest, I had been working with a lot of ASP.NET code on the day this thread came in.
And I was not thinking SQL Server, I was thinking. ASP.

Sorry, lost my train of thought on this one.
Aleks

ASKER
Its no problem  :) it happens.