Scenario is like this:
Name Sal
A 10;
B 20;
C 30;

Then Output should be
Name Sal
A 10;
B 20;
C 30;
Total 60;

Use SQL For this scenario

Answer Posted / situ

first create a table emp4 using the above data then execute the below query to find that output
select case when grouping(name)=1 then 'Total'else name end as name,sum(sal) as sal from emp4 group by rollup(name);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

EXL informatica Questions

920


Explain the types of transformations?

591


where to store informatica rejected data?

670


How many numbers of sessions can one group in batches?

611


In which transformation you cannot drag ports into it?

774






What are the tuning techniques you applied during your last project

1553


whats the logic to load the lower level of granularity of data to fact table.

1789


Did u used latest transformations of 8.6.0? for what?

1469


How do you manage the Parameter files while migrating your data from one environment to another environment?

532


What is DR strategy for Informatica project?

689


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.

1032


What is rank index in rank transformation?

599


Define Pmrep command?

625


what kind of issue you will get in environment? (we ll call help desk to raise ticket rite?

1613


What are the differences between joiner transformation and source qualifier transformation?

615