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
What is data movement mode in Informatica and difference between them?
Explain the difference between mapping parameter and mapping variable?
What is the reusable transformation?
What is meant by query override?
Hi friends I want to know about what r the dimensions in the banking porjects and genarally how many tables r in project ?
How to handle decimal places while importing a flatfile into informatica?
What happens when a session fails and you click on recover?
CANNOT USE PARAMETER FILE! Hi all, I am trying to use parameter file for my workflow. This could help me to filter records where CITY = 'Portland' Following is what I have done: **in Designer - create new parameter : $$PARA_FIL, Parameter, String, IsExprVar=TRUE, Initial value = [empty] - Source Qualifier/ Properties/Source Filter: CUSTOMERS.CITY='$$PARA_FIL' **Create Parameter file: C:\Informatica\PowerCenter8.6.0 \server\infa_shared\BWParam\DynamicParamTest.txt $$PARA_FIL='Portland' **Configure workflow to use the parameter file: Edit Workflow/Properties/Parameter Filename: C:\Informatica\PowerCenter8.6.0 \server\infa_shared\BWParam\DynamicParamTest.txt I also configured directory of parameter file for session task. However, I just got this in the session log: [SQ_CUSTOMERS] SQL Query [SELECT CUSTOMERS.CUSTOMER_ID FROM CUSTOMERS WHERE CUSTOMERS.CITY='$$PARA_FIL'] No record has been loaded to target. It seems that the parameter file has not been read. I cannot understand the reason why. Could any of you kindly suggest me anything? Thanks
What are the transformations that cannot be placed between the sort origin and the joiner transformation so that we do not lose the input sort order?
what is degenerated dimension?
can any one explain me what i have to tell about insurance project in interview,,,,when he asked to tell about ur project
Explain the types of transformations?
What are batches?
What is a router transformation?
What is the sequence generator transformation in informatica?