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

Advance Thanks

Answer Posted / priyank

select (case when sal is null then (select min(sal) from
emp) end) from emp

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 size of your data warehousing?

1857


How do you migrate data from one environment to another?

855


what is granularity,what type of granularity we will take in fact tables either lowlevel or highlevel,if two tables having same granularity that is posiable or not

2092


Suppose we do not group by on any ports of the aggregator what will be the output?

811


Explain dynamic target flat file name generation in informatica

846


Explain sessions. Explain how batches are used to combine executions?

784


What is the difference between Active and Passive transformation?

859


What is decode in static cache?

798


what are all the deliverables of ETL informatica power center project? what are all updated or created by etl developer as his everyday activities?

2041


What is enterprise data warehousing?

794


Design a mapping to load the cumulative sum of salaries of employees into target table?

1186


what is SDLC way of code development?

1766


What is a passive transformation?

820


How do you set a varible in incremental aggregation

1650


What is an Integration service in Informatica?

899