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
Mention a few design and development best practices for informatica?
What is a grid in Informatica?
How to load the data from a flat file into the target where the source flat file name changes daily?
What are the restrictions of union transformation?
What is the need of etl tools?
Write the advantages of partitioning a session?
i have a data in my source as a flat files what test i have to perform the next step can any body help to me
What is update strategy transform?
To import the flat file definition into the designer where should the flat file be placed?
Differentiate between a database and data warehouse?
what is the size of your data warehousing?
How do you migrate data from one environment to another?
i had a source containing business,sales,details column and i have to load it to a target but i have some bad records in it , but i have to load 70% of business records and 50% of sales and 95% of details records excluding bad records to achieve this what should be done and what all logic and tx should be used can anyone help? thanks in advance
what kind of issue you will get in environment? (we ll call help desk to raise ticket rite?
what is granularity,what type of granularity we will take in fact tables either lowlevel or highlevel,if two tables having same granularity that is posiable or not