delimiter \\
drop procedure if exists get_mv_by_key\\
create procedure get_mv_by_key(in i_datasettag char(32))
begin
    select
        storage_node_access_key
    from
        dataset_node_jct
    where
        access_key = i_datasettag and
        storage_node_type = 'MV';

end\\
delimiter ;