How to update salary of employees department wise?
Answer Posted / ajit nayak
update emp
set sal = case Deptno when 10 then 1000
when 20 then 2000
when 30 then 3000
else 0
end;
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
How can you fetch common records from two tables?
What are the ways on commenting in a pl/sql code?
How can you save or place your msg in a table?
What operators deal with null?
what are the different functions in sorting an array? : Sql dba
What is natural join in sql?
What is difference between inner join and self join?
What is trigger and types?
What is a mutating table and a constraining table?
What is schema in sql example?
how to create a test table in your mysql server? : Sql dba
What are different types of statements supported by sql?
Explain ddl statements in pl/sql?
What is cte sql?
Can a table contain multiple foreign key’s?