Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How many dimensions are there in informatica?

1068


draw informatica architecture 8.6 ?

3863


tell me 5 session failure in real time how can you solve that in your project?

2272


What is Index Caches size?

1097


What is workflow? What are the components of workflow manager?

1161


if we have a delimiters at unwanted places in a flat file how can we over come those.

2032


What are Dimensional table?

1046


What is substr in informatica?

1183


How to convert multiple rows to single row (multiple columns) in informatica

1370


What is dynamic cache?

1021


What is the difference between power center and power mart? What is the procedure for creating independent data marts from informatica 7.1?

1062


Explain the difference between a data warehouse and a data mart?

1049


If the source has duplicate records as id and name columns, values: 1 a, 1 b, 1 c, 2 a, 2 b, the target should be loaded as 1 a+b+c or 1 a||b||c, what transformations should be used for this?

10126


How are the sources and targets definitions imported in informatica designer?

1091


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

2256