In my application, I need a query with the following conditions.
- Increase $1000 if the employee is a Trainee(A)
- Increase $2000 if the employee is a Mechanic(B)
- Increase $3000 if the employee is an Enginner(C)
- Increase $5000 if the employee is a Manager(D)
I have the Table with the following columns
- Emploee_ID
- Employee_Name
- Emloyee_Salary_per_Month
- Employee_Salary_per_annum
- Emploee_designation (A, B, C or D)
Can anyone please tell me how to write an sql query for this condition?
1 Answer