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 sql query following table

city gender no
chennai male 40
chennai female 35
bangalore male 25
bangalore female 25
mumbai female 15

i want the required output

city male female
chennai 40 35
bangalore 25 25
mumbai 15

Answer Posted / anshita gupta

select * from city pivot(max(no) for gender in('male ','female'));

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by SOA of Informatica?

963


what is the difference between informatica6.1 and infomatica7.1

2251


Explain informatica architecture - version 8 / 9

1073


How does a rank transform differ from aggregator transform functions max and min?

1192


what are the best practices to extract data from flat file source which are bigger than 100 mb memory?

2336


How to improve the performance of a session using sorter transformation?

1133


What are junk dimensions?

1058


In warehouses how many schemas are there?

1058


Describe the scenarios where we go for joiner transformation instead of source qualifier transformation?

1097


What are the components of workflow manager?

1074


can we override a native sql query within informatica? How do we do it?

1106


Define Pmrep command?

1033


In informatics server which files are created during the session rums?

1106


What is workflow manager?

1028


Explain how to import oracle sequence into informatica?

989