...
When the second step is executed an email will be sent.
See also:
If you want to run SQLPLUS commands, you can use the SqlPlus-Job:
SOSSQLPlusJob.xml
If you are not using ORACLE and you want to execute a sql command, please see
Job JobSchedulerManagedDatabaseJob