Avatar of dkilby
dkilby
Flag for Canada asked on

MS SQL Query + Update field from value of different table

I have two tables, both have a lenght_of_time column, and both have callID linking them.

I want to update the field in table A - length_of_time with the value in table B length_of_time where callID is equal and table B length_of_time <> 0

how would i do this - could someone help with the query

thanks
Microsoft SQL ServerMicrosoft SQL Server 2008SQL

Avatar of undefined
Last Comment
dkilby

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Vitor Montalvão

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.
dkilby

ASKER
Thanks worked perfect
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck