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

3.how will u get information about bugs how will u rectify the bugs in realtime whch tool we are using to rectify the bugs

2212


if i hv 6 table as source table but can i make 12 as a dim table and 6 as fact table belongs to that src table.

2165


What is a sequence generator transformation?

987


Enlist the tasks for which source qualifier transformation is used.

1009


Hi Everybody, I have one fixed width file as source and 4 oracle tables (relational) as target. What are the Unit test cases i need to implement ? 1.Using TextPad software i tested postion of the field 2.As per specification i tested like whether it is correctly mapped or not? Is there any other test case do i need to implement. If possible can any one give me the test cases Advance Thanks

1920


Difference between Target-based loading and constraint-based loading?

974


Explain direct and indirect flat file loading (source file type) - informatica

1292


How does the aggregator transformation handle null values?

1113


Explain pushdown optimization $pushdownconfig parameter - informatica

1104


How do you remove duplicate records in informatica? And how many ways are there to do it?

1142


What are the transformations that are not supported in mapplet?

987


What are the steps involved in the migration from older version to newer version of Informatica Server?

2075


On which transformations you created partitions in your project?

1290


What are the tasks that can be performed using sq?

1051


How does a sorter cache works?

1025