on 03-08-2010 9:52 AM
HI,
Can i Select data from 3 tables using JOIN statement in sender JDBC adapter??
If so, Can i update all 3 tables using Update query parameter in JDBC sender??
i have to select from 3 tables and update fields in 3 tables..
Thanks
Murali
Edited by: murali krishna on Mar 8, 2010 10:52 AM
Hi Mural,
Yes,u can use Joins to select data from diff tables and also update those table fileds.
Ex:
SELECT table1.column1, table2.column2 FROM table1, table2 WHERE table1.column1 = table2.column1;
SELECT table1.column1, table2.column2 FROM table1, table2, table3 WHERE table1.column1 = table2.column1 AND table1.column1 = table3.column1;
UPDATE:
Update MyTable MT Set (col1, col2) = (Select col3, col4 From tableA TA Where TA.col5 = MT.col5);
Thanks
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
After selecting data like the below select query...
SELECT table1.column1, table2.column2 FROM table1, table2 WHERE table1.column1 = table2.column1;
I have to update Column1 in table1 and table2 eg: if the column1 value is 123 i have to change it to 111 in both tables where we have selected the data..
Hi all,
Sorry..
I mean to say SQL scripts..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Can we write SAP scripts in Update query paremeter in sender JDBC..??
immediate response is Appreciatable.
Thanks,
Murali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can i Select data from 3 tables using JOIN statement in sender JDBC adapter??
Yes
Can i update all 3 tables using Update query parameter in JDBC sender??
Unfortunately, only one table update is possible.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.