Easy Firebird question

Hello, i hope my question is not to stupid, but i have sometimes to deal with our firebird database and just need quick help:

How to update values with a join condition:

select Vauftragnr, Kundname, Lager from wws_verkauf1
join wws_verkauf2 on wws_verkauf1.VAUFTRAGNR = wws_verkauf2.VAUFTRAGNR
where artikelnr="30000" and datum>"01.01.2018" and erledigt="N"

i would like to update the "Lager"
Robert HasitschkaCEOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Omar SoudaniSenior System EngineerCommented:
PortletPaulEE Topic AdvisorCommented:
Firebird does not support joins in an update statement. You need to locate the wanted rows to update using the where clause instead. E.g. by using EXISTS

Before I could try a rewrite I would need to know which tables these columns come from:

where artikelnr="30000" and datum>"01.01.2018" and erledigt="N"

nb It is really important to preface columns by the table in any multi-table query.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.