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
Differences between connected and unconnected lookup?
Write the unconnected lookup syntax?
Suppose we have a source qualifier transformation that populates two target tables. How do you ensure tgt2 is loaded after tgt1?
How to improve the performance of a session using sorter transformation?
What is informatica etl tool?
how tokens will generate?
Explain informatica architecture - version 8 / 9
Explain sessions. Explain how batches are used to combine executions?
What is transformation?
How to create the source and target database connections in server manager?
Briefly describe lookup transformation?
How is Source Side push down optimization different to just providing a SQL override in Source qualifier transformation.
How do you load first and last records into target table?
Can u generate reports in Informatica?
Write the unconnected lookup syntax and how to return more than one column.