My query in SQL Sever:
INSERT INTO BIT_Dashboard.dse.L_Projectgroup (Projectgrouptype_CD) VALUES
(
CASE Projectgroup_NAM
WHEN (
'BLA'
| 'BI Projekt'
| 'PDP'
| 'VBM'
) THEN ('PRO')
END
)
I am getting the following error:
“Invalid column name ‘Projectgroup_NAM’.”
he thing is (maybe I forgot to emphasise that) is that I already have some rows in the table and I would like to update the Projectgrouptype_CD in the certain row with the query. What am I doing wrong?
Wha is my query not working?
Try to change it to
select statement:I’m not sure table
BIT_Dashboard.dse.L_Projectgroupis correct, but It’s an example.Update syntax:
If you need more
case