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

wtite sql query following table are
city gender no
chennai male 40
chennai female 35
bangalore male 10
bangalore female 25
mumbai female 15
i want the output?

city male female
chennai 40 35
bangalore 10 25
mumbai null 15

Answer Posted / gagan

Suppose first table as test created below create table test
(
city varchar2(50),
gender varchar2(50),
nmbr varchar2(50)
)

and keep all data in it as mentioned and then try to run
this query...


select a.city, a.nmbr as male, b.nmbr as female
from test a, test b
where a.gender = 'male' and b.gender = 'female' and b.city
= a.city

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is substr in informatica?

1211


How we can create indexes after completing the loan process?

1212


What is aggregate cache in aggregator transformation?

1148


Hi friends I want to know about what r the dimensions in the banking porjects and genarally how many tables r in project ?

1907


How do you promote a non-reusable transformation to reusable transformation?

1138


How will the document be delivered to me?

1085


Define Pmrep command?

1068


Could you explain what is enterprise data warehouse?

1148


What is rank transform?

1001


How to go to the older version for a mapping?

1100


What is a shortcut and copy in Informatica and how two are different with each other?

1199


What do you mean by enterprise data warehousing?

1066


Which is the t/r that builts only single cache memory?

1190


Is there any way to read the ms excel datas directly into informatica?

1023


What is joiner change?

1149