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...

write a query following source
region sales
1 1000
2 2000
i want the output ?please give solution
1 2
1000 2000

Answer Posted / ankit kansal

Hi All,
As Question says Write a sequel query..


select sum(1),sum(2) from (
select case when region=1 then salary else 0 end as 1,
case when region=2 then salary else 0 end as 2
from table_name )test;

http://deepinopensource.blogspot.com/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

complex mapping ur project u r invlve can u explain and give real time example give me ?

2235


What is data movement mode in Informatica and difference between them?

1057


What is the session task and command task?

991


Enlist the differences between database and data warehouse.

1033


what is the Default Source Option For Update Strategy Transformation?

1166


Separate from a database, an information bazaar, and an information stockroom?

1011


How do you set a varible in incremental aggregation

1826


What all join we can perform in LOOKUP transformation?

913


What is a node in Informatica?

1003


What is informatica etl tool?

941


What are the popular informatica products?

958


State the differences between sql override and lookup override?

1113


What are the tuning techniques you applied during your last project

1965


What can we do to improve the performance of informatica aggregator transformation?

1042


What are the informatica performance improvement tips

1017