SELECT *
  FROM reward_gainers
   FOR UPDATE;

SELECT b.reward_name,
       a.*
  FROM reward_gainers  a,
       reward_projects b
 WHERE a.reward_index = b.reward_index;
