on 12-26-2014 1:24 PM
Dear Experts
In the SQL-Transform when i use select statement with multiple nested conditions it works fine. But when i use delete statement its gives syntax error. Does it mean that SQL-Transform wont support any Insert, Delete or Update Statement? How to achieve these statements in SQL-Transform then?.
When i use the same delete statement in oracle it works fine and gives correct result.
Regards
Vijay Mukunthan
The SQL transform can only be used as a source in a dataflow. So by definition, only select operations are possible.
Insert, delete and update operations are applied to targets only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dirk
Thanks for your reply. I am testing some scenarios. For that scenario the easiest way to achieve the result is delete or update certain data in oracle database. But unfortunately delete or update gives syntax error. same syntax works perfect in oracle SQL developer. So i doubted that SQL-Transform supports Insert, Update or Delete Statement or not.
Regards
Vijay Mukunthan
Note that the Data Integrator component of DS is not a SQL-tool but an ETL-tool, slightky different way of thinking required . We achieve your results with a dataflow as:
Specify a where-clause in the Query transform to filter out the records you want to delete. Then change the row type from Normal to Delete in the Map Operation transform.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.