A bozo's blog
select
treat(user_data
as
prov_db.prov_msg_type).request_id request_id
from
prov_db.qt_prov_msg;