Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 error message

Author  Topic 

mana
Posting Yak Master

102 Posts

Posted - 2015-02-12 : 06:49:43
Hello

I have the following code in sql server and then i have the below problem. can you help me please?
thank you

Error message: The multi-part identifier 'Fzg.EUR' could not be bound


update dbo.Inv_Adjustments_Chartspart1
set Fzg. EUR = B.kosten_sum
from dbo.Inv_Adjustments_Chartspart1 A
left join (SELECT SUM(Kosten_Gesamt) as kosten_sum,
Datum_Produktion_Deklaration
FROM dbo.v_Inv_Adjustments_Chartspart1
group by Datum_Produktion_Deklaration) B on
A.Offline_date=B. Datum_Produktion_Deklaration

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2015-02-12 : 06:52:05
Which of the two tables has the column EUR?
Go to Top of Page

mana
Posting Yak Master

102 Posts

Posted - 2015-02-12 : 06:53:36
TABLE dbo.Inv_Adjustments_Chartspart1
Go to Top of Page

mana
Posting Yak Master

102 Posts

Posted - 2015-02-12 : 07:05:43
dO YOU KNOW WHERE my problem is?
Go to Top of Page

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2015-02-12 : 08:42:25
Sure! in your update you have:


set Fzg. EUR = B.kosten_sum


but the name "Fzg" is not found anywhere else in your query. So, when SQL sees that name, it does not know what you are refering to.
Go to Top of Page
   

- Advertisement -