on 08-13-2007 3:04 PM
Hi all,
Iam working with a jdbc-to-jdbc scenario.In this I am having 3 tables on source side called t1 , t2 & t3. On target side I am having 2 tables called tb1 & tb2. Now I have to retrieve data from 3 tables and insert into 2 tables using one type of condition with t1 & t2 and another condition with t1 & t3 . Can I do this with single scenario, If yes How can I?
Can anybody pleaseeee.......
Thanks & Regards,
Radhika.
Hi ,
Yes , You can do Please refer the following link for teh SQL query
http://yaodba.blogspot.com/2007/03/insert-into-multiple-tables-from-single.html
Regards.,
V.Rangarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sender
Use join to pick up the data from more than 1 table.
In mapping, specify ur conditions for grouping the data
Receiver
Use stored procedure to update two tables.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There are 3 tables U1, U2, U3.From these 3 tables I have to retrive data with the conditions given below.....
U1.a1 = U3.c1 and U3.c2 = 'N' and U3.c3 = 'C' ---> this is from two tables U1 and U3
U2.b1 = U3.c1 and U3.c2 = 'N' and U3.c3 = 'B' ---> this is from another two tables U2 and U3
The data from U1, U3 tables has to come in seperate set as that of the data from tables U2, U3.
Please suggest me in this case....
Hi Varun,
My tables are UTOIP, UTTMS, UTCT.And the corresponding fields are as follows...
UTOIP ---> OPGUI
UTTMS -- > MSGUI
UTCT ---> CTGUI, CTSTS, CTECMA
The condition to retrieve data from UTOIP and UTCT is < UTOIP.OPGUI = UTCT.CTGUI and UTCT.CTSTS = 'N' and UTCT.CTECMA = 'OPSOIP' >
The condition to retrieve data from UTTMS and UTCT is < UTTMS.MSGUI = UTCT.CTGUI and UTCT.CTSTS = 'N' and UTCT.CTECMA = 'OPSOCLM' >
Can u please tell me how to get the seperate data of both tables using these conditions....
Thanks & Regards,
Radhika.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.