on 07-28-2013 12:30 AM
Hi experts,
I need to make a simple query (SELECT MAX( FIELD ) FROM TABLE WHERE FIELD2 = X) using JDBC lookup. From the designer, you can not use MAX
Can be done with a UDF?
What other options are there?
Thanks & Regards
you can use jdbc sender option and execute select max. Query if that is feasible. Or jdbc receiver with execute
Statement query option. Only via jdbc lookup it is currently not possible. If you need via lookup follow michal's suggestion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
using JDBC look up its not possible u can call single query in sender communication channel
It will be work
Thanks,
srikanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Explain your scenario pls. this is possible through JDBC select from adapter.
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>Can be done with a UDF?
yes - it can - don't use the jdbc lookup but just call the DB from java in the normal way
and then you can execute all sorts of DB calls (just make sure the user/pass is passed to the mapping
using parameters from ID and not hardcoded)
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.