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 s sql query following table some duplicate present i
want unique one column duplicate another column display?

name id
a 1
a 1
b 2
b 2
c 3
i want the required output like
unique duplicate
name id name id
a 1 a 1
b 2 b 2
c 3

Answer Posted / anto

unique

select distinct name,id from table

duplicate

select name,id from table
group by name,id
having count(name||id) > 1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

differences between service based and product based?

1965


what is the size of your data warehousing?

2042


Explain in detail scd type 2 through mapping.

985


What is target load order?

1184


How can we create index after completion of load process?

1070


How can you define user defied event?

972


tell me the rules and responsblites in our project(my project is development)

1874


I have a mapping loading 100 records and it failed on 20th record. how to recover it without changing anything.(in prod where we don't have any access).. (the session should should start from 21 record)

1555


What is the difference between Active and Passive transformation?

1077


Can we use the mapping parameters or variables created in one mapping into any other reusable transformation?

1216


Slowly changing dimensions, types and where will you use them

1653


Explain incremental aggregation in informatica

1060


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

1041


What is xml source qualifier transformation in informatica?

1172


can you please explain me pre session and post session options?

7392