write a sql query following table?
col1 col2
1 2
1 2
1 2
3 4
3 4
5 6
i want the output like
unique duplicate
col1 col2 col1 col2
1 2 1 2
3 4 1 2
5 6
Answer / vaibhav jogale
We can achieve this using With clause
insert into TEST_UNIQ (col1,col2)
with Ct_Test as (
select col1,col2,row_number () over (partition by col1,col2 order by col1,col2)Rw_no
from test123)
select col1,col2 from Ct_Test where rw_no=1
/
insert into TEST_DUp (col1,col2)
with Ct_Test as (
select col1,col2,row_number () over (partition by col1,col2 order by col1,col2)Rw_no
from test123)
select col1,col2 from Ct_Test where rw_no>1
/
| Is This Answer Correct ? | 1 Yes | 0 No |
How do you Merge multiple Flat files for example 100 flat files with out using Union T/F
.prm wirh repalce .txt is possible?
which one is better either active or passive transformation in informatica
Which are the different editions of informatica powercenter that are available?
There are 4 source files which contains same metadata create target that should display the file name along with record please send answer with mapping
What are the issues that you have faced while moving your project from the Test Environment to the Production Environment?
How does the aggregator transformation handle null values?
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
What are the types of lookup transformation?
How to update source definition?
What do you mean incremental aggregation?
Suppose we do not group by on any ports of the aggregator what will be the output?