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
Can we create a Integration service without a Repository service and vice versa?
What are the components of the workflow manager?
Hi, I am planning to take Infa Certification exam but am unable to find its dumps anywhere on web. If anybody has it, plz share them with me. jkinfo22@gmail.com Thanks in advance
Suppose we have two source qualifier transformations sq1 and sq2 connected to target tables tgt1 and tgt2 respectively. How do you ensure tgt2 is loaded after tgt1?
What is the difference between informatica 7.0 and 8.0?
What are data-driven sessions?
Separate from a database, an information bazaar, and an information stockroom?
What is the difference between informatics 7x and 8x and what is latest version?
what is Active lock explain
Where are the source flat files kept before running the session?
write a query to retrieve the latest records from the table sorted by version(scd)
What is meant by lookup transformation?
What is the way to execute pl/sql script using informatica mapping?
Which is the t/r that builts only single cache memory?
Dimension Object created in Oracle can be imported in Designer Cubes contain measures