If sal is null then replace it with min(sal). Can any one
write a query for this in oracle ?

Advance Thanks

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the way to execute pl/sql script using informatica mapping?

989


Differentiate between a database and data warehouse?

665


Under which circumstances, informatica server creates reject files?

611


What is difference between a gateway node and worker node?

641


What is informatica? Why do we need it?

657






what is the -ve test case in your project.

1874


How to elaborate tracing level?

705


On which transformations you created partitions in your project?

771


explain one complex mapping with logic? sales project?

6181


While importing the relational source definition from the database, what are the metadata of source that will be imported?

808


How to extract sap data using informatica?

620


What is Data Caches size?

672


What is the use of code page?

624


what is the size of your data warehousing?

1686


What are the validations that you can perform in oracle and in informatica ? Advance Thanks

1670