I have a problem when doing a select with filters to several columns. I have a table with different age groups (days, months, years) and I need to make a consultation where only people who are younger than 2 bring me but the months are greater than 5, that is, people with 6 months of age to 1 year.
select *
from dean_eapg.v_cuenta_total_evaluados
where edad = '1'
or (meses > '5' and meses < '12')
I've tried with this query and it does not work for me.