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 Difference between SetVariable and setmaxvariable in informatica?
What is status code?
I have done MBA in 2008. i got job as business analyst in 2008 january through consultany. but after 3 months they are giving training Informatica developer. now iam continuing this job. my question is when iam going to interview HR people ask me many times like this " YOU ARE MBA GRADUATE. HOW YOU ARE SELECT THIS POSTION. IAM EXPLAINING WHAT I HAVE MENTION ABOVE". PLEASE TELL HOW IAM TELLING THIS QUESTION ANSWER.
what is the gap analysis?
Is it passive or active when check and uncheck the box of DISTINCT in Sorter transformation? why?
6 Answers iFlex, Morgan Stanley,
when we create source as oracle and target as flat file, how can i specify first row as column in flat file?
What is data quality? How can a data quality solution be implemented into my informatica transformations, even internationally?
What is a rank transform?
Define maping and sessions?
What is the fact table?
while creating the scd mappings. we will mention flag value. what exactly the use of defining the FLAG VALUE. Please explaine indetaile
What are the different clients of powercenter?