begin;
update traits
set access_level = 4
where
site_id in (select id from sites where (sitename like '%Season 4%' OR sitename like '%Season 4%Range 30%'))
and checked > -1;
commit;
to ensure we are holding back data that failed qaqc:
begin;
update traits
set access_level = 1
where checked < 0;
commit;
to ensure we are holding back data that failed qaqc: