Job_ID column in Employees table has unique data for each row and i need to update those data either as 'MANAGER" OR 'TELLER' using value of another column FIRST_NAME as below but seems the update is not happening. My expectation is for FIRST_NAME = VIJES OR UNNATH the JOB_ID should be "Manager" and for others should be "Teller"
Getting response as 0 row(s) affected Rows matched: 6 Changed: 0 Warnings: 0
UPDATE EMPLOYEES
SET JOB_ID = CASE
WHEN FIRST_NAME IN ('VIJES','UNNATH') THEN JOB_ID = 'MANAGER'
WHEN FIRST_NAME NOT IN ('VIJES','UNNATH') THEN JOB._ID = 'TELLER'
END
WHERE FIRST_NAME IN ('VIJES','UNNATH','VINOD','RAKESH','ANANT','MUKESH')
Understand that i can fire individual Update Query with criteria FIRST_NAME for each row but looking for single Update Query for entire table.
Please clarify