i have a table like
empid ename year month sal
1 x 98 jan 500
1 x 98 feb 500
1 x 98 mar 500
1 x 99 jan 600
1 x 99 feb 600
2 y 98 jan 600
2 y 98 feb 600
2 y 98 mar 600
2 y 99 jan 700
2 y 99 jan 700
and so on
i want to find out totsal for every emp on year wise
plz help me

Answer Posted / ankit kansal

Using SQL->

select empid,ename,year,sum(sal) Total_Sal from table_name
group by empid,ename,year;

Using Informatica->

SRC->SQ->Agg(sum(sal)[group by empid,ename,year])->TGT

http://deepinopensource.blogspot.in/

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by a term domain?

670


What is the scenario which compels informatica server to reject files?

606


What are the components of workflow manager?

588


What is rank index in rank transformation?

606


What do you understand by term role-playing dimension?

576






What is the reusable transformation?

627


How to update a particular record in target with out running whole workflow?

1158


Explain the code page compatibility?

643


Can we override a native sql query within informatica?

632


What are the various types of transformation?

646


Name at least 5 different types of transformations used in mapping design and state the use of each.?

670


suppose we are using dynamic lookup cache and in lookup condition the record is succeeded but in target it is failed due to some reasons then what happened in the cache ?

6089


What is the fact table?

591


How might you approve all mappings in the archive all the while?

602


Separate from a database, an information bazaar, and an information stockroom?

611