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
What is the difference among union, minus and intersect?
What is consistency?
what are rollup and cube in t-sql? : Transact sql
Is inner join faster than left join?
How do I run a program in pl sql?
What is difference between sql and oracle?
What is an escape character in sql?
What is time based sql injection?
Write a sql query to find the names of employees that begin with ‘a’?
How do sql triggers work?
How many subqueries can be nested in a statement?
What are different functions in sql?
How to avoid duplicate records in a query?
What is not equal in sql?
How do you write an inner join query?