sql server - Merge the result of an Inner Join to a table SQL -


using sql query have result used inner join, results displayed underneath query.

how can jot results down in existing table ie merge it?

update curinghistorydata.dbo.curingdata set pressnumber = master.dbo.tagtable curinghistorydata.dbo.curingdata.tagindex = master.dbo.tagtable.tagindex; 

when execute error

msg 4104, level 16, state 1, line 11
multi-part identifier "master.dbo.tagtable.tagindex" not bound.

dont know going wrong. both tables exist way.

 update t1      set t1.pressnumber = t2.pressnumber  curinghistorydata.dbo.curingdata t1 inner join  master.dbo.tagtable t2 on t1.tagindex = t2.tagindex; 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -