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 partition in sql query?
How can we implement rollback or commit statement in a trigger?
What are the syntax and use of the coalesce function?
Can we call dml statement in function?
Which command is used to delete a package?
What is embedded sql what are its advantages?
What is microsoft t sql?
Describe sql comments?
Is it possible to remove child records without removing master table records...the two having pk,fk relationship?
What is dbo in sql?
what are the join types in tsql? : Transact sql
how to convert character strings to numeric values? : Sql dba
Can we rename a column in the output of sql query?
What is primary key secondary key alternate key candidate key?
What do you understand by pl/sql packages?