if suppose i have 3 columns namely 1,2,3 in table a and
1,2,3 in table b Now in table a 1,2 and table b 1,2 columns
are having same data.now based on this two columns either
data should get inserted or updated. How do i write a sql
query to check whether the data is populated correctly or
not
Answers were Sorted based on User's Feedback
Answer / misra
Select a.*,b.*,'update' as type
from a,b where a.1=b.1 and a.2=b.2
union
Select a.*,b.*,'insert' as type
from a,b where a.1<>b.1 or a.2<>b.2
Basically its like scd1,with table A as source and table B as target.
Based on "type" column you can write insert/update statement in stored procedure at db level or keep update strategy in informatica level.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sri
Write Tablename.columnname in SQL query. In your case,
for selecting all data from table a column 2,the query is:
select * from a.2
So in this way operation of data can be made by using
required SQL operators.
| Is This Answer Correct ? | 3 Yes | 10 No |
How do u identify or filter out a 0 byte file available in a folder by using UNIX command?
What are the different options available for update strategy?
How to improve the performance of Aggregate transformation?
I still need further explanation about the difference between active and passive transformation with some examples.Thank You
What is the advantage of persistent cache? When it should be used.
When the informatica server marks that a batch is failed?
how to delete duplicate records by using filter transfermation?
What is difference between a connected look up and unconnected look up?
How to delete duplicate records in a flat file source?
How can we create index after completion of load process?
Hi, I am unable to connect ports from two Active trasformations to another active transformation ? Why is it so? Why it is designed like that? Some rules has been designed like this that is We can't connect passive and another passive to active.Can any one please letme know all these rules. Ex:- I am trying to connect filter1 and filter2 to another filter. Please answer me Advance Thanks
What is a passive transformation?