If sal is null then replace it with min(sal). Can any one
write a query for this in oracle ?
Advance Thanks
Answers were Sorted based on User's Feedback
Answer / madhu
here is the query
update emp set sal =(select min(sal) from emp) where sal is null
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / ramesh 9866930212
select min(decode(sal,null,(select min(sal) from emp))) sal
from emp group by empno;
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / abc
update emp_test set comm=(select min(sal) from emp_test)
where comm is null;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / amol m
SELECT DECODE(w.salary,NULL,(SELECT MIN(e.salary) FROM
employees e),w.salary) FROM employees w
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / priyank
select (case when sal is null then (select min(sal) from
emp) end) from emp
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / eval
update emp_test set comm=(select min(sal) from emp_test)
where comm is null;
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the filename which you need to configure in UNIX while installing infromatica?
What is a router transformation?
During the running session, output files are created by informatica server. Enlist few of them.
Which transformation should we use to normalize the COBOL and relational sources?
4 Answers DELL, IBM, Lehman Brothers,
what is metadata?
Explain about HLD and LLD ?
Is there any way to read the ms excel datas directly into informatica?
Normalizer transformation is not involved in Mapplet.. why???
when we use dynamic lookup,if condition matches what will be the o/p?
wtite sql query following table are city gender no chennai male 40 chennai female 35 bangalore male 10 bangalore female 25 mumbai female 15 i want the output? city male female chennai 40 35 bangalore 10 25 mumbai null 15
What is meant by incremental aggregation?
what is the difference between stop and abort?