Using update, Insert and select query in a single named query on same database

See here: