Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



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

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

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

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

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

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

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

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

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

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

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

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

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

Answer / basavan

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

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More Informatica Interview Questions

what is parameter file?

1 Answers   Cap Gemini,


What is a look up function? What is default transformation for the look up function?

2 Answers   ASM, TCS,


According to his methodology what all you need before you build a datawarehouse

0 Answers  


Explian the connected and unconnected lookup transformation

1 Answers   Informatica,


What is the difference between view and materialised view?

4 Answers  


Source and Target are flat files, Source table is as below ID,NAME 1,X 1,X 2,Y 2,Y On Target flat file i want the data to be loaded as mentioned below ID,NAME,REPEAT 1,X,2 1,X,2 2,Y,2 2,Y,2 How to achieve this, Can i get a map structure

2 Answers   CTS,


What are the tasks that Loadmanger process will do?

1 Answers  


how to load rows into fact table in data warehouse

0 Answers   Informatica,


What is lookup transformation?

0 Answers  


I still need further explanation about the difference between active and passive transformation with some examples.Thank You

5 Answers  


how DTM buffer size and buffer block size are related

3 Answers   Wipro,


Can we change Dynamic to Static or Persistent cache? If so what happens?

0 Answers   TCS,


Categories