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
What are the various types of transformation?
What is meant by LDAP users?
What are the measure objects?
What are the types of lookup transformation?
Tell me any other tools for scheduling purpose other than workflow manager pmcmd?
can we override a native sql query within informatica? Where do we do it? How do we do it?
How can we handle two sessions in informatica?
Explain joiner transformation in informatica
What is the procedure for creating independent data marts from informatica 7.1?
what is diff b/t sorter t/r and agg have the option sorter property...
COL1,COL2 ABC,1 XYZ,2 HERE IN COL2 VALUES 1,2 NOT STSANDARD(IE MEANS NOT FIXED VALUES LIKE OTHER SOME VALUES LIKE 10,20) O/P IS COL1,COL2 ABC,2 XYZ,1
Define update strategy?
Which development components of informatica have the highest usage?
Explain the different kinds of facts.
Under what condition selecting sorted input in aggregator may fail the session?