Multi-part identifier error in SQL SERVER using UPDATE -


i having error :

msg 4104, level 16, state 1, line 2 multi-part identifier "minus.groupby" not bound. 

whenever try using code:

update chadothercharges set jan = (select jan chadothercharges chadothercharges.groupby = minus.groupby) chadothercharges 

chadothercharges , minus both table

chadothercharges table column:  acctcode | acctdesc  |  type  |  orderby  |   groupby | jan   minus table column:  groupby | min | max 

i think should definition of minus table, there not groupby column.

after watching table structure query :

update chadothercharges set jan = (select jan                                    chadothercharges inner join                                    minus on minus.groupby = chadothercharges.groupby) 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -