select  des_gra as GRADO ,des_are as AREA ,des_log as Obj_GRADO, des_ind as DESEMPEÑO
from log_are_gra l
inner join area a using(cod_are)
inner join grado g using(cod_gra)
inner join indicadores_seg i using(cod_log)
where ('VAR01'='%' or cod_gra='VAR01') 
order by ord_gra,des_are,des_log,des_ind
