Quantcast
Channel: SQL Server Express forum
Viewing all articles
Browse latest Browse all 3319

Syntax errors in update query

$
0
0

Below is the query:

UPDATE CFQCC

SET sp_CFQCorr.RecImported = 1, 
CFQCC.RecImported = 1

from [HR_DEV_DM].[CFQ_TEST].CFQ_Coord_Corrections as CFQCC
INNER JOIN [HR_DEV_DM].[CFQ_TEST].sp_CFQ_Coord_Corrections as sp_CFQCorr
ON CFQCC.CorrID = sp_CFQCorr.ID 

WHERE (((sp_CFQCorr.RecImported)=0) 
AND ((CFQCC.RecImported)=0));

When executed, it gives the below error:

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

Please help....


Viewing all articles
Browse latest Browse all 3319

Trending Articles