If the conditional SQL is critical to your logic, vs. splitting the SQL into 2 activities/calls,Then you may want to look at using Java inside an ExecuteScript activity.You usually have more flexibility using a prepareStatement, but you need to be sure to trap and handle and errors.Mark