CREATE DEFINER=`jhise`@`localhost` PROCEDURE `project_remove_dataset`(in i_project_access_key char(32), in i_dataset_access_key char(32))
BEGIN

	declare l_project_id int;

    select id into l_project_id from project where access_key = i_project_access_key;

	delete from project_dataset_jct where project_id = l_project_id and dataset_access_key = i_dataset_access_key;

END
