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 / pooja
Select case when GROUPING(e.Name)= 1
then'Total'else e.Name end as Name,
sum(e.Salary)as Salary from Emp e
group by e.Name with rollup
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do think which one is the better joiner or look up?
What is the function of union transformation?
How many ways are there to create ports?
How can you differentiate between powercenter and power map?
Explain the informatica workflow?
Performance tuning( what you did in performance tuning)
Explain how many types of dimensions are available in informatica?
What is the Rank index port in Rank transformation?
what is Active lock explain
Explain what are the different versions of informatica?
what is informatica metadata?
How to handle decimal places while importing a flatfile into informatica?
What is the benefit of session partitioning?
What are the different clients of powercenter?
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 ?