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 sql query following table some duplicate present
1
1
2
2
3
3
4
5

i want the output unique one column duplicate another
column following format like

unique duplicate
1 1
2 2
3 3
4
5

Answer Posted / nagarau puppala

select distinct country_id "unique", (case when count(country_id) > 1 then country_id else null end) "duplicate" from s_region
group by country_id order by duplicate;

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to join three sources using joiner? Explain though mapping flow.

1140


Quickly characterize reusable change?

1113


have u done any performance tuning? how u ll do?

2291


What is exclusive and normal mode for repository services?

1135


How can a transformation be made reusable?

1158


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

1052


What are mapplets? How is it different from a Reusable Transformation?

1084


Can you use flat files in Mapplets.

2648


How many dimensions are there in informatica?

1076


What is flashback table ? Advance thanks

1928


How to do the error handling of if ur source is flatfiles?

1960


Differentiate between sessions and batches?

1011


Define filter transformation?

1088


What is sq transformation?

1154


Can we get 1st record through Informatica(without sequence number).

1472