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

Advance Thanks

Answer Posted / basavan

select nvl(sal,min(sal) from <table name>

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are the sources and targets definitions imported in informatica designer?

697


What is option by which we can run all the sessions in a batch simultaneously?

680


What is an aggregator transformation?

633


How to differentiate between the active and passive transformations?

640


Calculate sum of salaries department wise. Then the sum will be repeat for all columns in each department. Develop a mapping for this.

1868






What is the fact table?

610


I have 100 records in source table, but I want to load 1, 5,10,15,20…..100 into target table. How can I do this? Explain in detailed mapping flow.

1129


How do you migrate data from one environment to another?

661


Hi, I want to change date type char value integer value? I tried alter table tab_name modify (newcolumn newdatetype). But The columns have 10 million values(char type) so I want to load now numeric data. How it is possible? Old Values New Value(I want to load numeric data but the old value should be there in the column) Y 1 N 0 ERROR at line 1: ORA-01439: column to be modified must be empty to change datatype Please help on this. Thanks, GM

3469


Mine is Insurance Domain, So interviewer asked about terms like underwriting, disbursement amt, Reinsurance

1606


Difference between Target-based loading and constraint-based loading?

567


What is aggregator transformation in informatica?

559


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

808


How does a rank transform differ from aggregator transform functions max and min?

694


How do you load first and last records into target table?

684