ho risloto con questa query
update libro set disp = true
where libro."codiceLibro" in
(SELECT "prenotaLibro"."codiceLibro" from "prenotaLibro"
where ("richiestaPrestito"-current_date)<0);
ho risloto con questa query
update libro set disp = true
where libro."codiceLibro" in
(SELECT "prenotaLibro"."codiceLibro" from "prenotaLibro"
where ("richiestaPrestito"-current_date)<0);