shiggyshag
Programmer
Hi
I have a table which i need to update from some datat in another table but both need to have a where clause
So I need to update Table1 where contactID = @ContactID
From Table2 Where solID = @SolID
below is what I have I just can not figure out how to selest a where in from
ALTER PROCEDURE dbo.StoredProcedure2
(@SolID int,
@ContactID nvarchar(50))
AS
UPDATE dbo.tContactSol
SET dbo.tContactSol.Sol = dbo.tPanelSol.Sol
From dbo.tPanelSol (where?)
Where contactID = @ContactID
I have a table which i need to update from some datat in another table but both need to have a where clause
So I need to update Table1 where contactID = @ContactID
From Table2 Where solID = @SolID
below is what I have I just can not figure out how to selest a where in from
ALTER PROCEDURE dbo.StoredProcedure2
(@SolID int,
@ContactID nvarchar(50))
AS
UPDATE dbo.tContactSol
SET dbo.tContactSol.Sol = dbo.tPanelSol.Sol
From dbo.tPanelSol (where?)
Where contactID = @ContactID