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 |
i have f;latfile source. i have two targets t1,t2. i want to load the odd no.of records into t1 and even no.of recordds into t2.
By using joiner t/r we can join only 2 tables, SO if want join more than 2 flat files ,How can i join?
What is union transformation?
Can some one explain me about Telecommunications(wireless) project in Informatica? Thanks in advance
What is data caches/ index caches?
difference between repository database and repository service?
what type of problem you faced insales project or insurance project
Define error Threshold?
how to create a sample mapping for dynamic lookup transformation
how DTM buffer size and buffer block size are related
What are the performance considerations when working with aggregator transformation?
Do you have to change the reject file b4 using reject loader utility.