select des_cur as SECCION,id_alu as CODIGO,ape_per as APELLIDOS,nom_per as NOMBRES , apro_alu as ESTADO
from alumno 
inner join alumcurso using(id_alu)
inner join curso using(cod_cur)
inner join grado using(cod_gra)
inner join alum_grado using(id_alu)
where est_alu='h' and( '%'='VAR01' or cod_cur='VAR01') and (apro_alu='VAR02' or '%'='VAR02')
order by ord_gra,gru_cur,ape_per,nom_per
