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...

In EMP table, for those emp whose Hiredate is same, update
their sal by "sal+500" or else for others keep the sal as it
is, how to do it by SQL query

Answer Posted / sanjaygupta1981

UPDATE emp
SET sal=sal+500
WHERE hiredate IN (SELECT hiredate
FROM employees
HAVING COUNT(*)>1
GROUP BY hiredate)

The above query will update the records of all those employees
whose hiredate is same.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you join a node to the already existing domain?

1180


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

2248


Have you worked with/created Parameter file

1710


How we can create indexes after completing the load process?

1198


What are the issues you have faced in your project? How did you overcome those issues?

2411


What are the popular informatica products?

1054


How you prepared reports for OLAP?

1655


4 yrs etl devloper roles and responsibilities?any body give solutions

2243


What is an expression transformation?

1077


How do you load only null records into target?

1249


Suppose we configure sorter transformations in the master and detail pipelines with the following sorted ports in order: item_no, item_name, price. When we configure the join condition, what are the guidelines we need to follow to maintain the sort order?

1142


Is there any way to read the ms excel datas directly into informatica?

1067


What do you understand by a term domain?

1170


Differentiate between reusable transformation and mapplet.

1141


Write the unconnected lookup syntax?

1129