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 / guest
update emp a set a.sal=a.sal+500 where a.hiredate in(select
max(b.hiredate) from emp b group by b.hiredate having
count(b.hiredate)>1);
or
update emp a set a.sal=a.sal+500 where a.hiredate=(select
max(b.hiredate) from emp b where a.hiredate=b.hiredate group
by b.hiredate having count(b.hiredate)>1);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is an expression transformation?
What is the scenario which compels informatica server to reject files?
What is difference between a gateway node and worker node?
Can any one give me a real time example for FACT TABLE & DIMENSIONAL TABLE?
expain about the tune parameters?
What is informatica?
How to implement security measures using repository manager?
how lookup transformation is made active in new versions... When to use connected and when to use unconnected lookup and why? which is good for session performance. How to make lookup persistent and how to remove stale data from that lookup. how commit works - when we stop or abort data. Explain in both cases. What is factless fact table and have you ever used it in real time scenarios.
Hi, There is a session in my workflow which is running for a long time, atlast we found the cause is the missing index. My session is running via a stored procedure. Can I create an Index on the table which the stored procedure is using while my session is running? Please suggest. My Informatica version is PC 8.0.6 My Oracle APPS is 11.5.3. Thanks,
How union transformation is used?
How can you differentiate between powercenter and power map?
explain one complex mapping with logic? sales project?
How many transformations can be used in mapplets.
Could you explain what is enterprise data warehouse?
hi friends .i designed mapping in windows but i want to run mapping in linux.should i install the server components in linux?